Form containing label and color pushbutton for showing and selecting a "color". More...
#include <mgui/colorbtn.h>

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_COLORBUTTON & | GetButton () |
| const COLOR & | GetColor () const |
| COLORREF | GetColorRef () const |
| MGUI::CTRL_LABEL & | GetLabel () |
| 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) |
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.
| MGUI::FORM_COLORBUTTON::FORM_COLORBUTTON | ( | ) |
Constructor.
| virtual MGUI::FORM_COLORBUTTON::~FORM_COLORBUTTON | ( | ) | [virtual] |
Destructor.
| 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.
| 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.
| 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.
| 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.
| label | New label text |
1.6.1