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













SourceForge.net Logo



Button

 

class Button : public Pusher

 

 

The famous foundation of any GUI. It has no Value.

 

Derived from Pusher

 

 

Constructor Detail

 

Button()

Initializes the button.

 


 

~Button()

Default destructor.

 

 

Public Member List

 

Button& SetImage(const Image& img)

Sets the image of the button.

img

Image.

Return value

*this for chaining.

 


 

Button& SetMonoImage(const Image& img)

Sets the monochromatic image. Image is colored according to current GUI look&feel.

img

Image.

Return value

*this for chaining.

 


 

Button& EdgeStyle()

Activates visual style suitable for buttons used inside frame of other Ctrls, like drop-down buttons in droplists.

Return value

*this for chaining.

 


 

Button& ScrollStyle()

Activates visual style suitable for buttons used in Scrollbars.

Return value

*this for chaining.

 


 

Button& NormalStyle()

Activates the visual style suitable for a standard button.

Return value

*this for chaining.

 


 

Button& LeftEdgeStyle()

Activates visual style suitable for buttons used inside frame of other Ctrls, on the left side, like in MultiButton.

Return value

*this for chaining.

 


 

Button& AutoStyle()

Sets the button to automatic look, clearing all style information.

Return value

*this for chaining.

 


 

Button& Ok()

Makes button "default accept" - it might have different visual representation and it is activated by Enter hotkey.

Return value

*this for chaining.

 


 

Button& Cancel()

Makes button "default cancel" - it might have different visual representation and it is activated by Esc hotkey.

Return value

*this for chaining.

 


 

Button& Exit()

Makes button "default exit" - it might have different visual representation and it is activated by both Esc or Enter hotkey.

Return value

*this for chaining.

 


 

Button& Normal()

Makes button (previously modifies with Ok, Cancel or Exit) "normal".

Return value

*this for chaining.

 


 

Button& SetStyle(const Style& s)

Sets the style of to button to Button::Style s.

 


 

static const Style& StyleNormal()

Returns the style used when painting "normal" buttons.

 


 

static const Style& StyleOk()

Returns the style used when painting "default accept" buttons.

 


 

static const Style& StyleEdge()

Returns the style used when painting buttons on the inside of a frame.

 


 

static const Style& StyleLeftEdge()

Returns the style used when painting buttons on the inside of a frame, on the left side.

 


 

static const Style& StyleScroll()

Returns the style used when painting scrollbar buttons.

 

 

 

 

Button::Style

 

struct Style : public ChStyle<Style> 

This structure defines the look of a Button.

 

 

Do you want to contribute?