Window title bar

Posted on 2000-02-25
Last Modified: 2010-04-04
How do I change the color of the title bar of a particular window/form, say red when it is active and green when it is deactivated (other in the application forms remain unchange ie use windows default color)
Question by:kjteng
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Accepted Solution

ZifNab earned 100 total points
ID: 2557601
Hi kjteng,

There exists some nice FWS components for this :

see RXLib for instance.

Expert Comment

ID: 2557611
WordCap, CapCtl (at DSP, Torrys) is another

to code it, you must intercept the WM_NCPAINT message

for more code information I advice you to look into the source of RXLib... no better place to get the correct information for such an implementation.


Author Comment

ID: 2564144
WordCap does exactly what I want but it slows down  my program when I run it on some older machine (Pentium 100).

I would like to test your other suggestion but have the following problem:

1. RXLib - I have just downloaded RXLib (v2.75 and patches). I am still not very familiar with this well known suite. Which of the component can do what I want?

2. Cannot find CapCtrl in DSP or Torry. Any help?

For those who are interested, the name of the first component mentioned above is TMSOfficeCaption. WordCap is the name of the zip file and *.pas file. Downloadable from:

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 2564214
You can find it under RXTools and it's name RXGradientCaption

Regards, Zif.

Author Comment

ID: 2564704
I like RXGradientCaption becos it seems to be 'lighter' then wordcap. However, I have a big problem with RXlib (on D3 professional). Everytime when I install RXlib (I have tried install/uninstall rx more than 5 times)  it works perfectly. However whenever I restart Delphi, I keep getting the following message and rx fails to be loaded into the component palete:

"Cannot load package c:\RX\dclrxctl.dpl.
One of the library files needed to run this application cannot be found"
and similar message for dclrxdb.dpl and dclrxtls.dpl

I have modified the according to the readme file. What other thing could I have done wrong in my installation ?


Expert Comment

ID: 2564745
Add this line to your autoexec.bat file :


or move the .dpl to the system directory of windows.

Regards, Zif.

Author Comment

ID: 2567548
It works.
The installation program add c:\rx to IDE library path but not the autoexe.bat. Don't u think its a bit strange for such a well polished suite like RX?

The RX components are very interesting. I will invest some time in studying.

Thanks again, Tom.


Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 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