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 » Look and Chameleon Technology » Need wider SpinButton -- How?
Re: Need wider SpinButton -- How? [message #14796 is a reply to message #14795] Sat, 15 March 2008 08:49 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
The required API is not missing. Rather than adding such API directly to the interface, U++ uses Chameleon Styles.

If you want to change the width of the spin buttons in the entire application, use something like this at an early point in the applications runtime (in an initialization step or if only one window, in the window constructor):
SpinButtons::Style& style = SpinButtons::StyleDefault().Write();
style.width = 40;

Now all spin buttons will have the given width.

If you only want to change some of the spin buttons, declare:
SpinButtons::Style style;

somewhere where it will not go out of scope before the control you want to modify and use:
style = SpinButtons::StyleDefault();
style.width = 40;
spin.SetStyle(style);


BUG:
I just noticed that the lower button in the spin control has some chameleon skin tilling issues only visible when it's hight is larger than usual. This is only a visual bug and will try to solve it later today.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DropList SetFrame appearance problem
Next Topic: Very strange issue with WindowBlinds
Goto Forum:
  


Current Time: Mon May 13 14:25:43 CEST 2024

Total time taken to generate the page: 0.02523 seconds