Form consisting of numeric edit field with labels before and after. More...
#include <mgui/edit.h>

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_LABEL & | GetLabelAfter () |
| MGUI::CTRL_LABEL & | GetLabelBefore () |
| void | SetLabelAfter (const MISTRING &label) |
| void | SetLabelBefore (const MISTRING &label) |
Form consisting of numeric edit field with labels before and after.
| MGUI::FORM_EDIT_NUMBER2::FORM_EDIT_NUMBER2 | ( | ) |
Constructor.
| virtual MGUI::FORM_EDIT_NUMBER2::~FORM_EDIT_NUMBER2 | ( | ) | [virtual] |
Destructor.
| 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.
| 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.
| label | New label text |
| void MGUI::FORM_EDIT_NUMBER2::SetLabelBefore | ( | const MISTRING & | label | ) | [inline] |
Set text for label "before" edit control.
| label | New label text |
1.6.1