• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

Window title bar

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)
0
kjteng
Asked:
kjteng
  • 4
  • 3
1 Solution
 
ZifNabCommented:
Hi kjteng,

There exists some nice FWS components for this :

see RXLib for instance.
0
 
ZifNabCommented:
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.

Zif.
0
 
kjtengAuthor Commented:
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?

p/s:
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:
http://www.ee.ed.ac.uk/~wfy/components.html

0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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

Regards, Zif.
0
 
kjtengAuthor Commented:
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 rx.inc according to the readme file. What other thing could I have done wrong in my installation ?


0
 
ZifNabCommented:
Add this line to your autoexec.bat file :

path=%path;c:\RX

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

Regards, Zif.
0
 
kjtengAuthor Commented:
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.

 
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now