Solved

Window title bar

Posted on 2000-02-25
7
249 Views
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)
0
Comment
Question by:kjteng
  • 4
  • 3
7 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 100 total points
ID: 2557601
Hi kjteng,

There exists some nice FWS components for this :

see RXLib for instance.
0
 
LVL 8

Expert Comment

by:ZifNab
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.

Zif.
0
 
LVL 2

Author Comment

by:kjteng
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?

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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 8

Expert Comment

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

Regards, Zif.
0
 
LVL 2

Author Comment

by:kjteng
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 rx.inc according to the readme file. What other thing could I have done wrong in my installation ?


0
 
LVL 8

Expert Comment

by:ZifNab
ID: 2564745
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
 
LVL 2

Author Comment

by:kjteng
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.

 
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 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