 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bruce Houlihan Guest
|
Posted: Wed Apr 18, 2007 10:57 pm Post subject: D2007 Themes and Colors |
|
|
After enabling theme support in my applications when upgrading them to
D2007, I'm not happy with some of the color choice for the native controls,
e.g. the light blue in the Windows CoolBar. Is there any way to control
this? I assume I'll have to create a .manifest file and edit it? Anyone
point me to how to do this to only change the color of the one control and
not affect the other items in the theme?
Bruce |
|
| Back to top |
|
 |
JD Guest
|
Posted: Thu Apr 19, 2007 8:11 am Post subject: Re: D2007 Themes and Colors |
|
|
"Bruce Houlihan" <rd8202 (AT) fss (DOT) co.orange.ca.us> wrote:
| Quote: |
[...] I'm not happy with some of the color choice for the
native controls, [...] Is there any way to control this?
|
Not without custom drawing or specifically disabling theming
for that particular control.
| Quote: | I assume I'll have to create a .manifest file and edit it?
|
That won't help because all the Manifest does is enable theming
which you have already done.
| Quote: | Anyone point me to how to do this to only change the color
of the one control and not affect the other items in the
theme?
|
That is contrary to the purpose of theming which is to let the
user descide how *they* want the UI to look.
To do what you're asking, your best bet is to subclass the
control's WndProc method or WindowProc property and catch
WM_NCPAINT (and possibly WM_PAINT), allowing the message to
be processed and then painting over the native painting.
~ JD |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|