Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Button color Foreground Background
Re: Button color Foreground Background [message #13348 is a reply to message #13341] Wed, 02 January 2008 18:26 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1427
Registered: September 2007
Ultimate Contributor
Well there are basically two ways to do it. If you want to apply a custom style to a specific button, you can use a function like this one:
void SetCustomStyle(Button &btn)
{
    static Button::Style style = btn.StyleNormal();
    //do stuff with it    
    btn.SetStyle(style);
}


Or if you wish to change the global "skin" of all buttons, look over the Chameleon package in the reference nest.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Label and Focus
Next Topic: new DropList items cannot be inserted at the beginning
Goto Forum:
  


Current Time: Tue Jun 17 13:05:43 CEST 2025

Total time taken to generate the page: 0.05143 seconds