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 » help with ToolButton style
help with ToolButton style [message #42035] Wed, 12 February 2014 19:10 Go to next message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
Looking at ToolButton::StyleDefault(), I see the elements below:

	
        int ToolButton::Style::contrast[6];        //
	bool ToolButton::Style::light[6];          //
	Value ToolButton::Style::look[6];          //
	Point ToolButton::Style::offset[6];        //
	byte ToolButton::Style::registered;        //
	Color ToolButton::Style::textcolor[6];     //
        Font ToolButton::Style::font               //



What do these style members do?

Tks!!
Re: help with ToolButton style [message #42042 is a reply to message #42035] Thu, 13 February 2014 01:37 Go to previous messageGo to next message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
I discovered a few hints:

Arrays can be referenced by the indices CTRL_NORMAL, CTRL_HOT, CTRL_PRESSED, CTRL_DISABLED, CTRL_CHECKED and CTRL_HOTCHECKED, which correspond to all 6 different possible button states, as the index names indicate themselves; arrays look, textcolor and offset define button Images, color of label text and label text offset for each button state above, respectively.

I still don't know what light and contrast arrays do, nor what byte registered does;

font is self-evident, that's the label text font;

tks.
Re: help with ToolButton style [message #43407 is a reply to message #42035] Fri, 25 July 2014 15:07 Go to previous message
bushman is currently offline  bushman
Messages: 134
Registered: February 2009
Experienced Member
Wow!!That's a record!

[Updated on: Fri, 25 July 2014 15:07]

Report message to a moderator

Previous Topic: Switch skin
Next Topic: Bug+solution - layout designer FieldFrame - code FieldFrame outOfSync
Goto Forum:
  


Current Time: Fri Apr 19 23:19:51 CEST 2024

Total time taken to generate the page: 0.04401 seconds