API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib uiklaf.lib form.lib
Required Capabilities
None
#include <eikmfne.h>
Inherits CEikMfneField.
Public Types |
|
enum | { EFillWithLeadingZeros = 0x1, EPreserveOldWidthBeforeEditing = 0x2, ERepresentsYear = 0x4, EPublicallySettableFlags = EFillWithLeadingZeros|EPreserveOldWidthBeforeEditing|ERepresentsYear } |
Flags for the number field. More... |
|
Public Member Functions |
|
virtual IMPORT_C | ~CEikMfneNumber () |
Destructor. |
|
IMPORT_C void | SetMinimumAndMaximum (TInt aMinimumValue, TInt aMaximumValue, const CFont &aFont) |
Sets the minimum and maximum allowable values. |
|
IMPORT_C void | GetMinimumAndMaximum (TInt &aMinimumValue, TInt &aMaximumValue) const |
Gets the minimum and maximum allowable values. |
|
IMPORT_C void | SetValue (TInt aValue, const CFont &aFont) |
Sets the field's current value. |
|
IMPORT_C TInt | Value () const |
Gets the number field's value. |
|
virtual IMPORT_C TBool | IsValid () const |
Returns ETrue if the field contains more than zero digits. |
|
IMPORT_C void | SetUninitialised (TBool aUninitialised) |
Sets the uninitialized status of the field. |
|
IMPORT_C TBool | IsUninitialised () const |
Gets the uninitialized status of the field. |
|
IMPORT_C void | SetDigitType (TDigitType aDigitType, const CFont &aFont) |
Sets the digit display type. |
|
IMPORT_C TDigitType | DigitType () const |
Gets the digit display type. |
|
IMPORT_C void | RefreshDigitType (const CFont &aFont) |
Derive and set digit display type from locale information. |
|
void | SetTrailingZeros () |
TBool | IsTextNull () const |
Static Public Member Functions |
|
static IMPORT_C CEikMfneNumber * | NewL (const CFont &aFont, TResourceReader &aResourceReader) |
Allocates and constructs a CEikMfneNumber from resource. |
|
static IMPORT_C CEikMfneNumber * | NewL (const CFont &aFont, TInt aMinimumValue, TInt aMaximumValue, TInt aInitialValue, TUint32 aFlags) |
Allocates and constructs a CEikMfneNumber with the specified parameters. |
|
|
Destructor. Deletes the number field's text. |
|
Gets the digit display type.
|
|
Gets the minimum and maximum allowable values.
|
|
|
Gets the uninitialized status of the field.
|
|
Returns ETrue if the field contains more than zero digits.
Reimplemented from CEikMfneField. |
|
Allocates and constructs a CEikMfneNumber with the specified parameters.
|
|
Allocates and constructs a CEikMfneNumber from resource. Obtains flags and the minimum and maximum values from an MFNE_NUMBER resource. Then calls the overloaded NewL() function.
|
|
Derive and set digit display type from locale information.
|
|
Sets the digit display type.
|
|
Sets the minimum and maximum allowable values.
|
|
|
Sets the uninitialized status of the field.
|
|
Sets the field's current value.
|
|
Gets the number field's value. Note that this function will leave if the value is not valid, i.e. the number of digits is zero or the value is outside of the minimum and maximum range.
|