MGUI::CTRL_LABEL Class Reference

Non-editable label control. More...

#include <mgui/ctrl.h>

Inheritance diagram for MGUI::CTRL_LABEL:

Inheritance graph
[legend]
List of all members.

Public Types

enum  STYLE { STYLE_LeftNoWrap, STYLE_Left, STYLE_Center, STYLE_Right }

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, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize, STYLE style=STYLE_LeftNoWrap)
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const char *label, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize, STYLE style=STYLE_LeftNoWrap)
 CTRL_LABEL ()
CStatic & GetCtrl ()
void SetLabel (const MISTRING &string)
void SetLabel (const char *string)
 ~CTRL_LABEL ()

Detailed Description

Non-editable label control.

Definition at line 415 of file ctrl.h.


Member Enumeration Documentation

enum MGUI::CTRL_LABEL::STYLE
 

Enumeration values:
STYLE_LeftNoWrap  Left-justify text without word wrapping.
STYLE_Left  Left-justify, MFC may word-wrap if too long.
STYLE_Center  Center, MFC may word-wrap if too long.
STYLE_Right  Right-justify, MFC may word-wrap if too long.

Definition at line 418 of file ctrl.h.


Constructor & Destructor Documentation

MGUI::CTRL_LABEL::CTRL_LABEL  )  [inline]
 

Constructor.

Definition at line 426 of file ctrl.h.

MGUI::CTRL_LABEL::~CTRL_LABEL  ) 
 


Member Function Documentation

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

Create control with ICONID with MISTRING or TEXTID tooltip.

Parameters:
ParentPane  Parent pane
iconid  ICON to use as the label
tooltip  tooltip string (allows TEXTID)

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

Create control with ICONID.

Parameters:
ParentPane  Parent pane
iconid  ICON to use as the label

void MGUI::CTRL_LABEL::Create MGUI::LAYOUT_PANE_BASE ParentPane,
const MISTRING label,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize,
STYLE  style = STYLE_LeftNoWrap
 

Create control with MISTRING or TEXTID label.

Parameters:
ParentPane  Parent pane
label  Label string (allows TEXTID)

void MGUI::CTRL_LABEL::Create MGUI::LAYOUT_PANE_BASE ParentPane,
const char *  label,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize,
STYLE  style = STYLE_LeftNoWrap
 

Create control with label from resource lookup.

Parameters:
ParentPane  Parent pane
label  Label string for resource lookup

CStatic& MGUI::CTRL_LABEL::GetCtrl  )  [inline]
 

Get reference to MFC control (MFC only).

Definition at line 472 of file ctrl.h.

void MGUI::CTRL_LABEL::SetLabel const MISTRING string  ) 
 

Set new label from Unicode string.

void MGUI::CTRL_LABEL::SetLabel const char *  string  ) 
 

Set new label from resource lookup.


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