Component | +--Control | +--UpDownpublic class UpDown
Implements an UpDown common control.
Fields
Name | Description |
---|---|
BASE_10 | Base 10 (decimal) numbering. |
BASE_16 | Base 16 (hexadecimal) numbering. |
LEFT | Topic under construction. |
MANUAL | Topic under construction. |
RIGHT | Topic under construction. |
Constructors
Name | Description |
---|---|
UpDown() | Creates an UpDown control. |
Methods
Name | Description |
---|---|
createHandle() | Creates a companion component. |
getBase() | Indicates what base we're operating in. |
getBuddy() | Retrieves the companion control. |
getCreateParams() | Retrieves the information needed to create our component. |
getHorizontal() | Determines if the updown control is vertical (default) or horizontal. |
getInterceptArrowKeys() | Determines whether or not the control intercepts arrow keys from the companion class. |
getMax() | Retrieves the current maximum value. |
getMin() | Retrieves the current minimum value. |
getModifyBuddy() | Determines if the control modifies the value in the companion control, or if the programmer will do it. |
getPositioning() | Determines how the UpDown control is positioned relative to the companion control. |
getValue() | Retrieves the current value (position) of the UpDown control. |
getWrap() | Determines if the control will wrap the number it is incrementing or decrementing to the other end of the range. |
setBase(int value) | Sets the base. |
setBuddy(Control ctl) | Sets the companion control. |
setHorizontal(boolean horz) | Determines if the UpDown control is vertical [default] or horizontal. |
setInterceptArrowKeys(boolean value) | Instructions the control to start or stop intercepting arrow keys from the buddy control. |
setMax(int value) | Sets the current maximum value. |
setMin(int value) | Sets the current min value. |
setModifyBuddy(boolean value) | Indicates if the control modifies the value in the companion control, or if the programmer will do this. |
setPositioning(int value) | Sets how the UpDown control aligns itself with the companion control. |
setValue(int value) | Sets the current value. |
setWrap(boolean value) | Indicates if the control wraps the number it is incrementing or decrementing to the other end of the range. |
Creates an UpDown control.
Creates a companion component. The UpDown control sends it WM_SETTEXT messages when the user selects things with the UpDown control. Override this routine to be notified when the control has finished creating things.
createHandle() in Control.
Returns the base, which can be one of the BASE_ values.
Indicates what base we're operating in.
Returns the control object.
Retrieves the companion control.
Returns the CreateParams object.
Retrieves the information needed to create our component.
getCreateParams() in Control.
Returns true if vertical; otherwise, returns false.
Determines if the updown control is vertical (default) or horizontal.
Returns true if intercepting arrow keys; otherwise, returns false.
Determines whether or not the control intercepts arrow keys from the companion class.
Returns the current maximum value.
Retrieves the current maximum value.
Returns the current minimum value.
Retrieves the current minimum value.
Returns true if the control modifies values; otherwise, returns false.
Determines if the control modifies the value in the companion control, or if the programmer will do it.
Returns MANUAL if positioning is done by the programmer, RIGHT if this control is positioned on the right of the companion control, or LEFT2 if positioned the left of the companion control.
Determines how the UpDown control is positioned relative to the companion control.
Returns the control's value.
Retrieves the current value (position) of the UpDown control.
Returns true if wrapping is enabled; otherwise, returns false.
Determines if the control will wrap the number it is incrementing or decrementing to the other end of the range.
Sets the base.
Sets the companion control.
Determines if the UpDown control is vertical [default] or horizontal.
Instructions the control to start or stop intercepting arrow keys from the buddy control.
Sets the current maximum value. This cannot be bigger than UD_MAXVAL or less than UD_MINVAL.
Sets the current min value.
Indicates if the control modifies the value in the companion control, or if the programmer will do this.
Sets how the UpDown control aligns itself with the companion control. Set the propget above for valid values.
Sets the current value.
Indicates if the control wraps the number it is incrementing or decrementing to the other end of the range.