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 

XP Windows Explorer colors
Goto page 1, 2  Next
 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Bob
Guest





PostPosted: Tue Aug 09, 2005 2:16 pm    Post subject: XP Windows Explorer colors Reply with quote



http://www.pbsoftware.com/images/sample.jpg

How do I get the color values for the Windows Explorer controls pictured in
the sample image above?


Back to top
Ed Mulroy
Guest





PostPosted: Tue Aug 09, 2005 2:34 pm    Post subject: Re: XP Windows Explorer colors Reply with quote



I don't think those colors are easily available with a Windows call.

One thing I've done to see what colors are used is to run SuperMagnify. It
displays the RGB value of the color where the cursor is located. If you do
not have it, google for SMAG10.EXE - it's freeware and many sites on the web
have it posted for download.

.. Ed

Quote:
Bob wrote in message
news:42f8bacc$1 (AT) newsgroups (DOT) borland.com...
http://www.pbsoftware.com/images/sample.jpg

How do I get the color values for the Windows Explorer controls pictured
in the sample image above?



Back to top
Bob
Guest





PostPosted: Tue Aug 09, 2005 2:37 pm    Post subject: Re: XP Windows Explorer colors Reply with quote



I am writing some custom controls and I would like my colors to match
Microsofts colors. I wanted to do it with code.

"Ed Mulroy" <dont_email_me (AT) bitbuc (DOT) ket> wrote

Quote:
I don't think those colors are easily available with a Windows call.

One thing I've done to see what colors are used is to run SuperMagnify.
It displays the RGB value of the color where the cursor is located. If
you do not have it, google for SMAG10.EXE - it's freeware and many sites
on the web have it posted for download.

. Ed

Bob wrote in message
news:42f8bacc$1 (AT) newsgroups (DOT) borland.com...
http://www.pbsoftware.com/images/sample.jpg

How do I get the color values for the Windows Explorer controls pictured
in the sample image above?





Back to top
Jonathan Benedicto
Guest





PostPosted: Tue Aug 09, 2005 2:41 pm    Post subject: Re: XP Windows Explorer colors Reply with quote

"Bob" <Bob (AT) NoSpam (DOT) com> wrote

Quote:
http://www.pbsoftware.com/images/sample.jpg

How do I get the color values for the Windows Explorer controls pictured
in the sample image above?

Try these color values:

clInactiveCaptionText
clWindow
clHighlight

etc.

HTH

Jonathan



Back to top
Bob
Guest





PostPosted: Tue Aug 09, 2005 4:39 pm    Post subject: Re: XP Windows Explorer colors Reply with quote

Are those VCL values? I am using win32 with no VCL.

"Jonathan Benedicto" <incorrect (AT) no (DOT) server> wrote

Quote:
"Bob" <Bob (AT) NoSpam (DOT) com> wrote in message
news:42f8bacc$1 (AT) newsgroups (DOT) borland.com...
http://www.pbsoftware.com/images/sample.jpg

How do I get the color values for the Windows Explorer controls pictured
in the sample image above?

Try these color values:

clInactiveCaptionText
clWindow
clHighlight

etc.

HTH

Jonathan




Back to top
Jonathan Benedicto
Guest





PostPosted: Tue Aug 09, 2005 4:49 pm    Post subject: Re: XP Windows Explorer colors Reply with quote

"Bob" <Bob (AT) NoSpam (DOT) com> wrote

Quote:
Are those VCL values? I am using win32 with no VCL.

Yes they were. Use this method instead:

GetSysColor( COLOR_INACTIVECAPTIONTEXT );
GetSysColor( COLOR_WINDOW );
GetSysColor( COLOR_HIGHLIGHT );

Jonathan



Back to top
Bob
Guest





PostPosted: Tue Aug 09, 2005 7:43 pm    Post subject: Re: XP Windows Explorer colors Reply with quote

I already tried that, but the colors do not match when I change my theme.

"Jonathan Benedicto" <incorrect (AT) no (DOT) server> wrote

Quote:
"Bob" <Bob (AT) NoSpam (DOT) com> wrote in message
news:42f8dc46 (AT) newsgroups (DOT) borland.com...
Are those VCL values? I am using win32 with no VCL.

Yes they were. Use this method instead:

GetSysColor( COLOR_INACTIVECAPTIONTEXT );
GetSysColor( COLOR_WINDOW );
GetSysColor( COLOR_HIGHLIGHT );

Jonathan




Back to top
Jonathan Benedicto
Guest





PostPosted: Tue Aug 09, 2005 7:47 pm    Post subject: Re: XP Windows Explorer colors Reply with quote

"Bob" <Bob (AT) NoSpam (DOT) com> wrote

Quote:
I already tried that, but the colors do not match when I change my theme.

Do you re-query the colors when the theme is changed ?

Jonathan



Back to top
Bob
Guest





PostPosted: Tue Aug 09, 2005 8:02 pm    Post subject: Re: XP Windows Explorer colors Reply with quote

Yes. The colors never match the Microsoft control.

"Jonathan Benedicto" <incorrect (AT) no (DOT) server> wrote

Quote:
"Bob" <Bob (AT) NoSpam (DOT) com> wrote in message
news:42f90767$1 (AT) newsgroups (DOT) borland.com...
I already tried that, but the colors do not match when I change my theme.

Do you re-query the colors when the theme is changed ?

Jonathan




Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Aug 09, 2005 9:02 pm    Post subject: Re: XP Windows Explorer colors Reply with quote


"Bob" <Bob (AT) NoSpam (DOT) com> wrote


Quote:
I already tried that, but the colors do not match
when I change my theme.

That is because you are querying the wrong values to begin with. What
Jonathan suggested earlier are NOT the values you are looking for.


Gambit



Back to top
Jonathan Benedicto
Guest





PostPosted: Tue Aug 09, 2005 9:27 pm    Post subject: Re: XP Windows Explorer colors Reply with quote

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:
That is because you are querying the wrong values to begin with. What
Jonathan suggested earlier are NOT the values you are looking for.

Do you mean the cl... values I gave, or the GetSysColor values ? I didn't
test those GetSysColor values, maybe I should have.

Jonathan



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Aug 09, 2005 9:42 pm    Post subject: Re: XP Windows Explorer colors Reply with quote


"Jonathan Benedicto" <incorrect (AT) no (DOT) server> wrote


Quote:
Do you mean the cl... values I gave, or the GetSysColor values ?

Both. What you suggested do not apply to the areas that Bob is asking
about, as evident by the fact that he's not being provided with the same
color values that the OS is actually using.

Quote:
I didn't test those GetSysColor values, maybe I should have.

Please do next time.


Gambit



Back to top
Jonathan Benedicto
Guest





PostPosted: Tue Aug 09, 2005 9:50 pm    Post subject: Re: XP Windows Explorer colors Reply with quote

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:
Both. What you suggested do not apply to the areas that Bob is asking
about, as evident by the fact that he's not being provided with the same
color values that the OS is actually using.

In one of my VCL apps, I've used clInactiveCaptionText, clWindow and
clHighlight to make the program resemble the XP theme. It works quite well,
and when the theme is changed, then the app takes on the new look.

Jonathan



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Aug 09, 2005 11:21 pm    Post subject: Re: XP Windows Explorer colors Reply with quote


"Jonathan Benedicto" <incorrect (AT) no (DOT) server> wrote


Quote:
In one of my VCL apps, I've used clInactiveCaptionText,
clWindow and clHighlight to make the program resemble the
XP theme.

Again, those DO NOT apply to the particular area that Bob is asking about.


Gambit



Back to top
Bob Piskac
Guest





PostPosted: Wed Aug 10, 2005 12:11 am    Post subject: Re: XP Windows Explorer colors Reply with quote

I found the colors in GetThemeColor. There is a section for EXPLORERBAR
which holds the values I need.

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Jonathan Benedicto" <incorrect (AT) no (DOT) server> wrote in message
news:42f92528$1 (AT) newsgroups (DOT) borland.com...

In one of my VCL apps, I've used clInactiveCaptionText,
clWindow and clHighlight to make the program resemble the
XP theme.

Again, those DO NOT apply to the particular area that Bob is asking about.


Gambit





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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.