Form consisting of single label and numeric edit field. More...
#include <mgui/edit.h>

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_LABEL & | GetLabel () |
| void | SetLabel (const MISTRING &label) |
Form consisting of single label and numeric edit field.
| MGUI::FORM_EDIT_NUMBER::FORM_EDIT_NUMBER | ( | ) |
Constructor.
| virtual MGUI::FORM_EDIT_NUMBER::~FORM_EDIT_NUMBER | ( | ) | [virtual] |
Destructor.
| 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.
| 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.
| label | New label text |
1.6.1