MGUI::FORM_EDIT_NUMBER2 Class Reference

Form consisting of numeric edit field with labels before and after. More...

#include <mgui/edit.h>

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

List of all members.

Public Member Functions

 FORM_EDIT_NUMBER2 ()
virtual ~FORM_EDIT_NUMBER2 ()
void Create (LAYOUT_PANE_BASE &ParentPane, const MISTRING &labelBefore, const MISTRING &labelAfter, 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 EditSizeAlign=LAYOUT_SIZEALIGN_FixedSize, LAYOUT_SIZEALIGN LabelAfterSizeAlign=LAYOUT_SIZEALIGN_FixedSize)
CTRL_LABELGetLabelAfter ()
MGUI::CTRL_LABELGetLabelBefore ()
void SetLabelAfter (const MISTRING &label)
void SetLabelBefore (const MISTRING &label)

Detailed Description

Form consisting of numeric edit field with labels before and after.


Constructor & Destructor Documentation

MGUI::FORM_EDIT_NUMBER2::FORM_EDIT_NUMBER2 (  ) 

Constructor.

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

Destructor.


Member Function Documentation

void MGUI::FORM_EDIT_NUMBER2::Create ( LAYOUT_PANE_BASE ParentPane,
const MISTRING labelBefore,
const MISTRING labelAfter,
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  EditSizeAlign = LAYOUT_SIZEALIGN_FixedSize,
LAYOUT_SIZEALIGN  LabelAfterSizeAlign = LAYOUT_SIZEALIGN_FixedSize 
)

Create the control with labels.

Parameters:
ParentPane Parent pane
labelBefore Text for label "before" edit control
labelAfter Text for label "after" edit control
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
LabelAfterSizeAlign Sizing for label "after" edit control
CTRL_LABEL& MGUI::FORM_EDIT_NUMBER2::GetLabelAfter (  )  [inline]

Retrieve label control "after" edit control.

Usually the label control is only retrieved for alignment purposes.

MGUI::CTRL_LABEL& MGUI::FORM_EDIT_NUMBER2::GetLabelBefore (  )  [inline]

Retrieve label control "before" edit control.

Usually the label control is only retrieved for alignment purposes.

void MGUI::FORM_EDIT_NUMBER2::SetLabelAfter ( const MISTRING label  )  [inline]

Set text for label "after" edit control.

Parameters:
label New label text
void MGUI::FORM_EDIT_NUMBER2::SetLabelBefore ( const MISTRING label  )  [inline]

Set text for label "before" edit control.

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