Switch to the dark side!
General Discussion

General Discussion

Latest Discussion
16 hours ago
3 days ago
1 week ago
2 weeks ago
More...

Post a new topic



changing tooltip color in StyleBuilder

Avatar-50x50
coyotelogic says:

I located an old post on Neowin about this, but it wasn't very specific. So for anyone trying to change the tooltip colors in an XP visual style, here's how to do it:

By default, StyleBuilder doesn't have this property available, why I don't know. You can, however, edit the visual style's color schemes' XML files directly:

1. Exit StyleBuilder (if you have it open).

2. Locate the XML file for the color scheme you wish to modify. For instance, if you had two color schemes named "Blue" and "Green", there should be two corresponding XML files named BLUE.XML and GREEN.XML.

3. Open the XML file in Notepad or any other text editor.

4. Scroll down to: "<CLASS Name="SysMetrics">"

Here you'll find the same properties you'd see in StyleBuilder's "SysMetrics" section, such as ActiveCaption, Btnface, etc.

5. You'll be adding two new lines to this section, for the tooltip's text (InfoText) and background (InfoBk) colors. Sorry, I didn't find anything for the border color.

Below is an example from an XML file for a visual style I'm currently working on:

<CLASS Name="SysMetrics">
<Property Name="InfoText" Value="255 255 255"/>
<Property Name="InfoBk" Value="103 136 201"/>
<Property Name="ActiveCaption" Value="28 61 125"/>
<Property Name="Background" Value="28 61 125"/>

6. Change the color values to what you want, save and close the XML file, repeat these steps for each color scheme's XML file, and you're done!

If you wish to change the colors again, you can now open the visual style in StyleBuilder, browse to the appropriate color scheme's SysMetrics section, and make your changes.

Note that in the above example I've placed the InfoText and InfoBk lines at the top of the list (above ActiveCaption). However, StyleBuilder will NOT sort the SysMetrics list automatically, so InfoText and InfoBk would be at the top of the list. Therefore, if you want an alphabetized list in StyleBuilder, you'll need to insert the new tooltip properties in the correct order (between InactiveCaptionText and Light3d).

I hope this helps. If anyone can find out how to change the tooltip border, please post!
____________________
Coyote Logic Consulting
no nonsense computing for grownups
http://coyotelogic.cjb.net/

02:32 am, Tuesday, May 18, 2004 (4 years ago)
Avatar-50x50
coyotelogic says:

Well, it seems the code examples I posted were not accepted. I'm going to try again by adding some spaces so the code won't be recognized. You'll need to remove anyspaces next to the following characters:
<
=
/
>


Heres the repost:

4. Scroll down to: "< CLASS Name = "SysMetrics" >"

Here you'll find the same properties you'd see in StyleBuilder's "SysMetrics" section, such as ActiveCaption, Btnface, etc.

5. You'll be adding two new lines to this section, for the tooltip's text (InfoText) and background (InfoBk) colors. Sorry, I didn't find anything for the border color.

Below is an example from an XML file for a visual style I'm currently working on:

< CLASS Name="SysMetrics" >
< Property Name = "InfoText" Value="255 255 255" / >
< Property Name = "InfoBk" Value="103 136 201" / >
< Property Name = "ActiveCaption" Value="28 61 125" / >
< Property Name = "Background" Value="28 61 125" / >

____________________
Coyote Logic Consulting
no nonsense computing for grownups
http://coyotelogic.cjb.net/

02:41 am (4 years ago)
Avatar-50x50
coyotelogic says:

Hey, it worked!

____________________
Coyote Logic Consulting
no nonsense computing for grownups
http://coyotelogic.cjb.net/

02:43 am (4 years ago)
Avatar-50x50
coyotelogic says:

Crap. I just noticed that Step 6 got cut off in the first post. Here it is:
------
6. Change the color values to what you want, save and close the XML file, repeat these steps for each color scheme's XML file, and you're done!

If you wish to change the colors again, you can now open the visual style in StyleBuilder, browse to the appropriate color scheme's SysMetrics section, and make your changes.

Note that in the above example I've placed the InfoText and InfoBk lines at the top of the list (above ActiveCaption). However, StyleBuilder will NOT sort the SysMetrics list automatically, so InfoText and InfoBk would be at the top of the list. Therefore, if you want an alphabetized list in StyleBuilder, you'll need to insert the new tooltip properties in the correct order (between InactiveCaptionText and Light3d).
------
I hope this helps. If anyone can find out how to change the tooltip border, please post!

____________________
Coyote Logic Consulting
no nonsense computing for grownups
http://coyotelogic.cjb.net/

02:50 am (4 years ago)
Avatar-50x50
coyotelogic says:

Hmmm. Must be something wron on my end, that last post wasn't necessary. Probably a wetware issue :)

____________________
Coyote Logic Consulting
no nonsense computing for grownups
http://coyotelogic.cjb.net/

02:52 am (4 years ago)
Avatar-50x50
coyotelogic says:

If you'd like to see these instructions written when I wasn't smoking crack, go here:

http://www.pcfinesse.com/sites/coyotelogic/800pages/changing
_tooltip_color_in_styleBuilder.txt


____________________
Coyote Logic Consulting
no nonsense computing for grownups
http://coyotelogic.cjb.net/

08:54 am (4 years ago)
1448
lightstar says:

Makes yo uwonder why those values were not in there by default, doesn't it?

09:19 am (4 years ago)
Avatar-50x50
caesar1996 says:

3DCC

Proverbs 19:96 -- Custo helps those who help themselves... use Google

11:33 am (4 years ago)
 
   Arrow_up_small Top

Reply to this topic

You must register and become a member to post a reply.