MGUI::FORM_EDIT_NUMBER Class Reference

Form consisting of single label and numeric edit field. More...

#include <mgui/edit.h>

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

List of all members.

Public Member Functions

 FORM_EDIT_NUMBER ()
virtual ~FORM_EDIT_NUMBER ()
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const MISTRING &label, double dft, double min, double max, int places=0, int width=0, CTRL_EDIT_NUMBER::FLAGS flags=CTRL_EDIT_NUMBER::FLAG_Default, CTRL_EDIT_NUMBER::FORMAT format=CTRL_EDIT_NUMBER::FORMAT_Decimal, LAYOUT_SIZEALIGN sizealign=LAYOUT_SIZEALIGN_FixedSize, CTRL_LABEL::STYLE labelstyle=CTRL_LABEL::STYLE_LeftNoWrap)
CTRL_LABELGetLabel ()
void SetLabel (const MISTRING &label)

Detailed Description

Form consisting of single label and numeric edit field.


Constructor & Destructor Documentation

MGUI::FORM_EDIT_NUMBER::FORM_EDIT_NUMBER (  ) 

Constructor.

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

Destructor.


Member Function Documentation

void MGUI::FORM_EDIT_NUMBER::Create ( MGUI::LAYOUT_PANE_BASE ParentPane,
const MISTRING label,
double  dft,
double  min,
double  max,
int  places = 0,
int  width = 0,
CTRL_EDIT_NUMBER::FLAGS  flags = CTRL_EDIT_NUMBER::FLAG_Default,
CTRL_EDIT_NUMBER::FORMAT  format = CTRL_EDIT_NUMBER::FORMAT_Decimal,
LAYOUT_SIZEALIGN  sizealign = LAYOUT_SIZEALIGN_FixedSize,
CTRL_LABEL::STYLE  labelstyle = CTRL_LABEL::STYLE_LeftNoWrap 
)

Create the control with label.

Parameters:
ParentPane Parent pane
label Label
dft Default value
min Minimum value
max Maximum value
places Number of decimal places to show
width Width in "characters", 0 to automatically determine based on min/max/places
flags Flags
format Format
CTRL_LABEL& MGUI::FORM_EDIT_NUMBER::GetLabel (  )  [inline]

Retrieve label control for form.

Usually the label control is only retrieved for alignment purposes.

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

Set label text from Unicode string.

Parameters:
label New label text

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

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