Link to home
Start Free TrialLog in
Avatar of girona
girona

asked on

Changing Title Bar Color in a Window

I would like to know how can I change the caption bar color in a window, so this change does only affect to the active window. I have used SetSysColors, but this changes the color in the system and I want only to change the color in an active Window. I am using Delphi 3.0 with W95 and NT 4.0.
Thanks.
Avatar of mvz121697
mvz121697

The only way i can come up with is to override the WM_NCPaint messages. This means that you have to do ALL the drawing of the titlebar yourself.
If that's what you want, go and check this one:

http://www.mindspring.com/~cityzoo/ttlbar1.html


Well, don't have a direct answer but a work around. There are components which give you the posibility to get the graded effect in your title bar. If you use these components (begin = end color) and you enable them when your form becomes active. You've got the same result!! And almost no programming!!
If you need such components, I can give you some adresses for it
Avatar of girona

ASKER

I was trying the software and helps of CITYZOO but with the 'LILTITLE' I have to make everything, minimize, maximize, etc. so I need a function, component or something in order not to do so much work.

I need a component or address to get it and be able of doing forms where I can change the color (and font) of the caption.

here are some :
 torry.rimini.com/vcl/forms/gradient.zip
 torry.rimini.com/vcl/forms/wordcap.zip
 torry.rimini.com/vcl/forms/marscap.zip
 torry.rimini.com/vcl/shared/dunograd.zip
                         
And did you found what you were looking for?
Avatar of girona

ASKER

Yes, I found what I was looking for. If you want to get the points answer the question with whatever you want. Thanks for that. If you have time I'd like you have a look to that question: "Sorting a lookup field" because I don't have any good answer in 15 days. See you.
I only take the points, if you found it through my comments. Otherwise I don't. I'll look at your other comment.
Can you give the URL, because I can't find it.
Avatar of girona

ASKER

Yes, I found the solution through your comments, I'm ussing one from torry.rimini.com site but I don't remember which one. The URL of my other question is: https://www.experts-exchange.com/topics/bin/ShowQ?qid=8630033732
Thanks for trying it so quick.

ASKER CERTIFIED SOLUTION
Avatar of ZifNab
ZifNab

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial