#include <mgui/ctrl.h>
Inheritance diagram for MGUI::CTRL_EDIT_NUMBER:

Public Types | |
| enum | FLAGS { FLAG_Default = 0x0000, FLAG_NoMin = 0x0001, FLAG_NoMax = 0x0002, FLAG_NoRange = 0x0003, FLAG_NoDefault = 0x0004, FLAG_AddOne = 0x0008, FLAG_BlankZero = 0x0020, FLAG_ReadOnly = 0x0040, FLAG_LeftJustify = 0x0080 } |
| enum | FORMAT { FORMAT_Decimal, FORMAT_Exponential, FORMAT_Latitude, FORMAT_Longitude, FORMAT_DegMinSec } |
Public Member Functions | |
| void | ClearValue (bool notify=true) |
| void | Create (MGUI::LAYOUT_PANE_BASE &ParentPane, double dft, double min, double max, int places=0, int width=0, FLAGS flags=FLAG_Default, FORMAT format=FORMAT_Decimal, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize) |
| CTRL_EDIT_NUMBER () | |
| const DOUBLE_RANGE & | GetRange () const |
| double | GetValue () |
| bool | HasValue () |
| void | IniRead (INIHANDLE IniHandle, const char *IniGroup, const char *IniField, bool notify=true) |
| void | IniWrite (INIHANDLE IniHandle, const char *IniGroup, const char *IniField) const |
| void | SetFormat (FORMAT format, int places=-1) |
| void | SetLatLonFormat (DEGTOSTRFLAGS flags) |
| bool | SetRange (const DOUBLE_RANGE &range, bool notify=true, FLAGS flags=FLAG_Default) |
| void | SetUnitConversion (const UNITCONV &unitconv) |
| void | SetValue (double value, bool notify=true) |
| virtual | ~CTRL_EDIT_NUMBER () |
Definition at line 1599 of file ctrl.h.
|
|
|
|
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Clear the value.
|
|
||||||||||||||||||||||||||||||||||||||||
|
Create control.
|
|
|
Get allowed numeric range.
|
|
|
Get current value.
|
|
|
Determine if has valid value.
|
|
||||||||||||||||||||
|
Read value from INI file. If Create() has already been performed the control's state will be updated.
|
|
||||||||||||||||
|
Write current value to INI file.
|
|
||||||||||||
|
Set format for showing/entering values. Setting to Latitude, Longitude or DegMinSec will also adjust range.
|
|
|
Set format for displaying latitude/longitude values.
|
|
||||||||||||||||
|
Set allowed range.
|
|
|
Set unit conversion for displayed value.
|
|
||||||||||||
|
Set current value.
|
1.3.8-20040913