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 CEikMfne.
This control supports editing a single integer value. If a number is entered which is not within the range specified by the maximum and minimum control values it is automatically reset to the nearest allowable value.
The editor has an associated resource struct NUMBER_EDITOR and control factory identifier EEikCtNumberEditor.
Public Member Functions |
|
IMPORT_C | CEikNumberEditor () |
Constructor. |
|
IMPORT_C void | ConstructL (TInt aMinimumValue, TInt aMaximumValue, TInt aInitialValue) |
Second-phase constructor. |
|
IMPORT_C void | SetMinimumAndMaximum (TInt aMinimumValue, TInt aMaximumValue) |
Sets the minimum and maximum editor values. |
|
IMPORT_C void | GetMinimumAndMaximum (TInt &aMinimumValue, TInt &aMaximumValue) const |
Gets the integer editor's minimum and maximum values. |
|
IMPORT_C void | SetNumber (TInt aNumber) |
Sets the integer editor's value. |
|
IMPORT_C TInt | Number () const |
Gets the integer editor's value. |
|
virtual IMPORT_C void | ConstructFromResourceL (TResourceReader &aResourceReader) |
Second-phase construction from a resource file. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
Constructor. This function should be used as the first stage in two stage construction, followed by a call to either ConstructFromResourceL() to initialise the editor's field values from a resource file, or ConstructL() if no resource file is used. |
|
Second-phase construction from a resource file. The function reads the maximum and minimum editor values from a NUMBER_EDITOR resource, and sets the initial number to be the same as the maximum value.
|
|
Second-phase constructor. Completes the construction of an integer editor. It should be called by container only if the editor is not constructed from a resource. Sets the minimum and maximum values that can be entered into the editor, and the initial value.
|
|
Gets the integer editor's minimum and maximum values.
|
|
From Handles pointer events.
Reimplemented from CEikMfne. |
|
Gets the integer editor's value.
|
|
Sets the minimum and maximum editor values. Only values inside the initial minimum and maximum are permitted. If the editor's value is outside the new bounds when the function is called, it is reset to the nearest allowable value.
|
|
Sets the integer editor's value. The control is not redrawn.
|