MGUI::CTRL_COLORBUTTON Class Reference

PushButton control for showing and selecting a "color". More...

#include <mgui/colorbtn.h>

Inheritance diagram for MGUI::CTRL_COLORBUTTON:

Inheritance graph
[legend]
List of all members.

Public Types

enum  STYLE { STYLE_Default = 0x0000, STYLE_OutputOnly = 0x0001, STYLE_AllowTransparent = 0x0002 }

Public Member Functions

void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const COLOR &dftcolor, STYLE style=STYLE_Default, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize)
 CTRL_COLORBUTTON ()
const COLORGetColor () const
COLORREF GetColorRef () const
void SetColor (const COLORREF color, bool notify=true)
void SetColor (const COLOR &color, bool notify=true)
virtual ~CTRL_COLORBUTTON ()

Protected Member Functions

virtual void OnChangeColor ()

Detailed Description

PushButton control for showing and selecting a "color".

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

Definition at line 41 of file colorbtn.h.


Member Enumeration Documentation

enum MGUI::CTRL_COLORBUTTON::STYLE
 

Enumeration values:
STYLE_Default 
STYLE_OutputOnly  User cannot change value.
STYLE_AllowTransparent  Allow transparent/transparency settings.

Definition at line 44 of file colorbtn.h.


Constructor & Destructor Documentation

MGUI::CTRL_COLORBUTTON::CTRL_COLORBUTTON  ) 
 

Constructor.

virtual MGUI::CTRL_COLORBUTTON::~CTRL_COLORBUTTON  )  [virtual]
 

Destructor.


Member Function Documentation

void MGUI::CTRL_COLORBUTTON::Create MGUI::LAYOUT_PANE_BASE ParentPane,
const COLOR dftcolor,
STYLE  style = STYLE_Default,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize
 

Create control.

Parameters:
ParentPane  Parent pane
dftcolor  Default color
style  Control style

const COLOR& MGUI::CTRL_COLORBUTTON::GetColor  )  const [inline]
 

Get current color.

Definition at line 67 of file colorbtn.h.

COLORREF MGUI::CTRL_COLORBUTTON::GetColorRef  )  const [inline]
 

Get current color.

Definition at line 71 of file colorbtn.h.

virtual void MGUI::CTRL_COLORBUTTON::OnChangeColor  )  [protected, virtual]
 

Called when color is changed.

Derived class must call corresponding superclass method BEFORE performing its own processing.

void MGUI::CTRL_COLORBUTTON::SetColor const COLORREF  color,
bool  notify = true
[inline]
 

Set color.

Parameters:
color  New color value to set
notify  Call OnChangeColor() if 'true'

Definition at line 81 of file colorbtn.h.

void MGUI::CTRL_COLORBUTTON::SetColor const COLOR color,
bool  notify = true
 

Set color.

Parameters:
color  New color value to set
notify  Call OnChangeColor() if 'true'


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:20:44 2004 for TNTsdk by  doxygen 1.3.8-20040913