MGUI::CTRL_PUSHBUTTON Class Reference

PushButton control supporting both text and icon buttons. More...

#include <mgui/ctrl.h>

Inheritance diagram for MGUI::CTRL_PUSHBUTTON:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, ICONID iconid, const MISTRING &tooltip, int iconsize=0)
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, ICONID iconid, const char *tooltip, int iconsize=0)
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const MISTRING &label, bool large=false, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize)
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const char *label, bool large=false, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize)
 CTRL_PUSHBUTTON ()
CButton & GetCtrl ()
virtual ~CTRL_PUSHBUTTON ()

Protected Member Functions

virtual void OnPressed ()=0

Detailed Description

PushButton control supporting both text and icon buttons.

Definition at line 652 of file ctrl.h.


Constructor & Destructor Documentation

MGUI::CTRL_PUSHBUTTON::CTRL_PUSHBUTTON  )  [inline]
 

Constructor.

Definition at line 656 of file ctrl.h.

virtual MGUI::CTRL_PUSHBUTTON::~CTRL_PUSHBUTTON  )  [virtual]
 

Destructor.


Member Function Documentation

void MGUI::CTRL_PUSHBUTTON::Create MGUI::LAYOUT_PANE_BASE ParentPane,
ICONID  iconid,
const MISTRING tooltip,
int  iconsize = 0
 

Create control with icon and ToolTip from resource lookup.

Parameters:
ParentPane  Parent pane
iconid  Icon ID
tooltip  ToolTip string
iconsize  Icon size, 0 for default

void MGUI::CTRL_PUSHBUTTON::Create MGUI::LAYOUT_PANE_BASE ParentPane,
ICONID  iconid,
const char *  tooltip,
int  iconsize = 0
 

Create control with icon and ToolTip from resource lookup.

Parameters:
ParentPane  Parent pane
iconid  Icon ID
tooltip  ToolTip string for resource lookup
iconsize  Icon size, 0 for default

void MGUI::CTRL_PUSHBUTTON::Create MGUI::LAYOUT_PANE_BASE ParentPane,
const MISTRING label,
bool  large = false,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize
 

Create control with Unicode label.

Parameters:
ParentPane  Parent pane
label  Label string
large  Create large buttons (for dialogs)

void MGUI::CTRL_PUSHBUTTON::Create MGUI::LAYOUT_PANE_BASE ParentPane,
const char *  label,
bool  large = false,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize
 

Create control with label from resource lookup.

Parameters:
ParentPane  Parent pane
label  Label string for resource lookup
large  Create large buttons (for dialogs)

CButton& MGUI::CTRL_PUSHBUTTON::GetCtrl  )  [inline]
 

Get reference to MFC control (MFC only).

Definition at line 701 of file ctrl.h.

virtual void MGUI::CTRL_PUSHBUTTON::OnPressed  )  [protected, pure virtual]
 

Called when button is pushed.


The documentation for this class was generated from the following file:
Generated on Wed May 31 15:29:50 2006 for TNTsdk by  doxygen 1.3.8-20040913