A text editing box that only allows numbers to be entered
![]() | PIntegerEditBox ( PInteractor * parent, long min = LONG_MIN, long max = LONG_MAX, long val = 0, long ndg = 1, BYTE numBase = 10 ) Create a number edit box for integer values with the parameters specified, validation to assure the user does not enter values outside the range specified. |
![]() | PIntegerEditBox ( PInteractorLayout * parent, PRESOURCE_ID ctlID, const PNotifier & notify, long * valuePtr ) Create control from interactor layout with the specified control ID. |
![]() | ~PIntegerEditBox () Destroy the number edit box. |
![]() | SetValue ( long val ) Set the value of the number edit box control. |
![]() | GetValue () const Get the current contents of the number edit box control as entered by the user, or set via the SetValue() function. |
![]() | GetValuePointer () const Get the current value pointer associated with the control. |
![]() | SetValuePointer ( long * ptr ) Set the current value pointer associated with the control. |
![]() | SetMaximum ( long val ) Set the maximum value that may be entered in the number edit box. |
![]() | GetMaximum () Get the maximum value that may be entered in the number edit box. |
![]() | SetMinimum ( long val ) Set the minimum value that may be entered in the number edit box. |
![]() | GetMinimum () Get the minimum value that may be entered in the number edit box. |
![]() | SetNudge ( long val ) Set the nudge value that will be used by the nudge buttons in the number edit box. |
![]() | GetNudge () Get the nudge value that will be used by the nudge buttons in the number edit box. |
![]() | SetBase ( BYTE numBase ) Set the number radix that will be used in the number edit box. |
![]() | GetBase () Get the number radix that will be used in the number edit box. |
![]() | OnEndInput () The system calls this whenever the system wishes to change focus to another interactor in the same layout or titled window. |
![]() | TransferValue ( int option ) This function transfers the value of the control to or from the variable pointed to by the value pointer member variable. |
![]() | AddNudge () Add the nudge value to the edit box value. |
![]() | New functions for class |
![]() | OnKeyInput ( const PString & str ) The system calls this whenever a keyboard key was pressed and this interactor had the focus. |
![]() | SubtractNudge () Subtract the nudge value to the edit box value. |
![]() | Overrides from class PInteractor |
![]() | Overrides from class PControl |
![]() | Overrides from class PNumberEditBox |
PNotifier codes
Member variables
Overrides from class PObject
System callback functions.
A text editing box that only allows numbers to be entered
The number base may be from 2 to 36. Typical values are 2 for binary
notation, 8 for octal notation, 10 for the traditional decimal notation
and 16 for hexadecimal.
The number base may be from 2 to 36. Typical values are 2 for binary
notation, 8 for octal notation, 10 for the traditional decimal notation
and 16 for hexadecimal.
PIntegerEditBox( PInteractorLayout * parent, PRESOURCE_ID ctlID, const PNotifier & notify, long * valuePtr )
ctlID - Identifier for the control in the layout.
notify - Function to call when changes state.
valuePtr - Variable to change to the editor value.virtual ~PIntegerEditBox()
New functions for class
void SetValue( long val )
long GetValue() const
long* GetValuePointer() const
void SetValuePointer( long * ptr )
void SetMaximum( long val )
long GetMaximum()
void SetMinimum( long val )
long GetMinimum()
void SetNudge( long val )
long GetNudge()
void SetBase( BYTE numBase )
BYTE GetBase()
Overrides from class PInteractor
virtual BOOL OnEndInput()
virtual void OnKeyInput( const PString & str )
Overrides from class PControl
virtual void TransferValue( int option )
Overrides from class PNumberEditBox
virtual void AddNudge()
virtual void SubtractNudge()
long minimum
long maximum
long nudge
Alphabetic index HTML hierarchy of classes or Java