1. Thank You DanM from Selgor

Hello DanM,

Wstyles.exw is beaut.

And Colors equally great.

Thank You for your time and help.

I hope some day to know as much

as you and DonCole seem to know about

this Euphoria.

Poser .....

Do you know how to change the blue title bar from blue to another colour ??

Just curious.

Again,

thanks,

cheers,

Selgor

new topic     » topic index » view message » categorize

2. Re: Thank You DanM from Selgor

Selgor said...

Hello DanM,

Wstyles.exw is beaut.

And Colors equally great.

Thank You for your time and help.

I hope some day to know as much

as you and DonCole seem to know about

this Euphoria.

Poser .....

Do you know how to change the blue title bar from blue to another colour ??

Just curious.

Again,

thanks,

cheers,

Selgor

Glad you liked Wstyles.exw and the Colors in RunDemos Selgor smile

Regarding changing the color of a title bar, I did look in Win32Lib docs, RunDemos, and googled it, and couldn't find any way to do itdoesn't mean there isn't any, just that I couldn't find any. Maybe someone else can.

And just so you'll know, I'm anything but a good programmer.

And a gentle couple of suggestions:
your question about changing the title bar color would be a good question to pose as a new topic here, as it puts it out where it can be better seen, and thus more likely answered.
But responding to people who have responded to your questions is best done within the thread of the post you started, not in a separate post like this one. Not saying never do it like this, just good general practice to keep within a thread whenever possible.

Happy programming,
Dan

new topic     » goto parent     » topic index » view message » categorize

3. Re: Thank You DanM from Selgor

And while I like to use the "Quoted Reply" button here to make sure I respond to posts at least semi-relevantly, I usually mean to delete the quoted part from my response, but all to often, as in my post above, forget to. Sorry, people.

Dan

new topic     » goto parent     » topic index » view message » categorize

4. Re: Thank You DanM from Selgor

DanM said...
Selgor said...

Hello DanM,

Wstyles.exw is beaut.

And Colors equally great.

Thank You for your time and help.

I hope some day to know as much

as you and DonCole seem to know about

this Euphoria.

Poser .....

Do you know how to change the blue title bar from blue to another colour ??

Just curious.

Again,

thanks,

cheers,

Selgor

Glad you liked Wstyles.exw and the Colors in RunDemos Selgor smile

Regarding changing the color of a title bar, I did look in Win32Lib docs, RunDemos, and googled it, and couldn't find any way to do itdoesn't mean there isn't any, just that I couldn't find any. Maybe someone else can.

You can change the color for ALL active windows, using the SetSysColors() API in user32.dll.

If you wish to change the appareance of a single window, I would create a raw message handler for the WM_NCPAINT message.

Therein, the device context to draw the border onto is the full window DC, which you get by calling getDC({id,DC_OPT_WINDOW}).

First call the default processing for the message. It will perform all kinds of stuff we'd rather not emulate, like drwaing the border according to window style.

On return, determine a point in the title bar that has the standard window color ( (border_width+1, border_height+1) seems a good bet), and perform a floodFill(the_DC,x_start,y_start,{-1,colorValue(your_color))

. Then free the DC and return {kReturnNow}.

Sorry not to be more specific, but gotta run.

Chris

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu