MGUI::FORM_COLORBUTTON Class Reference

Form containing label and color pushbutton for showing and selecting a "color". More...

#include <mgui/colorbtn.h>

Inheritance diagram for MGUI::FORM_COLORBUTTON:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FORM_COLORBUTTON ()
virtual ~FORM_COLORBUTTON ()
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const MISTRING &label, const COLOR &dftcolor, MGUI::CTRL_COLORBUTTON::STYLE buttonstyle=MGUI::CTRL_COLORBUTTON::STYLE_Default, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize, MGUI::CTRL_LABEL::STYLE labelstyle=MGUI::CTRL_LABEL::STYLE_LeftNoWrap)
MGUI::CTRL_COLORBUTTONGetButton ()
const COLORGetColor () const
COLORREF GetColorRef () const
MGUI::CTRL_LABELGetLabel ()
void SetColor (const COLORREF color, bool notify=true)
void SetColor (const COLOR &color, bool notify=true)
void SetDelegateOnChangeColor (DELEGATE_VOID_NOPARMS delegate)
void SetLabel (const MISTRING &label)

Detailed Description

Form containing label and color pushbutton for showing and selecting a "color".

The button will be shown in the selected color and contains no visible text.


Constructor & Destructor Documentation

MGUI::FORM_COLORBUTTON::FORM_COLORBUTTON (  ) 

Constructor.

virtual MGUI::FORM_COLORBUTTON::~FORM_COLORBUTTON (  )  [virtual]

Destructor.


Member Function Documentation

void MGUI::FORM_COLORBUTTON::Create ( MGUI::LAYOUT_PANE_BASE ParentPane,
const MISTRING label,
const COLOR dftcolor,
MGUI::CTRL_COLORBUTTON::STYLE  buttonstyle = MGUI::CTRL_COLORBUTTON::STYLE_Default,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize,
MGUI::CTRL_LABEL::STYLE  labelstyle = MGUI::CTRL_LABEL::STYLE_LeftNoWrap 
)

Create form with MISTRING or TEXTID label.

Parameters:
ParentPane Parent pane
label Label string
dftcolor Default color
MGUI::CTRL_COLORBUTTON& MGUI::FORM_COLORBUTTON::GetButton (  )  [inline]

Get button control.

const COLOR& MGUI::FORM_COLORBUTTON::GetColor (  )  const [inline]

Get current color.

COLORREF MGUI::FORM_COLORBUTTON::GetColorRef (  )  const [inline]

Get current color.

MGUI::CTRL_LABEL& MGUI::FORM_COLORBUTTON::GetLabel (  )  [inline]

Retrieve label control for form.

Usually the label control is only retrieved for alignment purposes.

void MGUI::FORM_COLORBUTTON::SetColor ( const COLORREF  color,
bool  notify = true 
) [inline]

Set color.

Parameters:
color New color value to set
notify Call OnChangeColor() if 'true'
void MGUI::FORM_COLORBUTTON::SetColor ( const COLOR color,
bool  notify = true 
) [inline]

Set color.

Parameters:
color New color value to set
notify Call OnChangeColor() if 'true'
void MGUI::FORM_COLORBUTTON::SetDelegateOnChangeColor ( DELEGATE_VOID_NOPARMS  delegate  )  [inline]

Set delegate to call when color is changed.

void MGUI::FORM_COLORBUTTON::SetLabel ( const MISTRING label  )  [inline]

Set label text from MISTRING or TEXTID.

Parameters:
label New label text

The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:35:55 2012 for TNTsdk 2012 by  doxygen 1.6.1