BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

D2007 Themes and Colors

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Bruce Houlihan
Guest





PostPosted: Wed Apr 18, 2007 10:57 pm    Post subject: D2007 Themes and Colors Reply with quote



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





PostPosted: Thu Apr 19, 2007 8:11 am    Post subject: Re: D2007 Themes and Colors Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.