Solved

Changing Title Bar Color in a Window

Posted on 1998-01-03
10
549 Views
Last Modified: 2010-04-04
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.
0
Comment
Question by:girona
  • 6
  • 3
10 Comments
 
LVL 2

Expert Comment

by:mvz121697
Comment Utility
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


0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
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
0
 

Author Comment

by:girona
Comment Utility
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.

0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
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
                         
0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
And did you found what you were looking for?
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:girona
Comment Utility
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.
0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
I only take the points, if you found it through my comments. Otherwise I don't. I'll look at your other comment.
0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
Can you give the URL, because I can't find it.
0
 

Author Comment

by:girona
Comment Utility
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: http://www.experts-exchange.com/topics/bin/ShowQ?qid=8630033732
Thanks for trying it so quick.

0
 
LVL 8

Accepted Solution

by:
ZifNab earned 100 total points
Comment Utility
Ok, to answer this question.
Look at these components :

                     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
                         
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now