BBjWindow::addInputNSpinner
Description
In BBj 7.00 and higher, this method creates a BBjInputNSpinner on the BBjWindow.
Syntax
Return Value |
Method |
---|---|
addInputNSpinner() |
|
addInputNSpinner(int ID) |
|
addInputNSpinner(int ID, int min, int max) |
|
addInputNSpinner(int ID, number x, number y, number w, number h) |
|
addInputNSpinner(int ID, number x, number y, number w, number h, int min, int max) |
|
addInputNSpinner(int ID, number x, number y, number w, number h, string flags$) |
|
addInputNSpinner(int ID, number x, number y, number w, number h, string flags$, float min, float max) |
|
addInputNSpinner(int ID, number x, number y, number w, number h, string flags$, string mask$) |
|
addInputNSpinner(int ID, number x, number y, number w, number h, string flags$, string mask$, float min, float max) |
|
addInputNSpinner(int ID, number x, number y, number w, number h, string flags$, string mask$, string rules$) |
|
addInputNSpinner(int ID, number x, number y, number w, number h, string flags$, string mask$, string rules$, float restore, float value) |
|
addInputNSpinner(int ID, number x, number y, number w, number h, string flags$, string mask$, string rules$, float restore, float value, float min, float max) |
|
addInputNSpinner(int ID, string flags$) |
|
addInputNSpinner(int ID, string flags$, int min, int max) |
|
addInputNSpinner(int ID, string flags$, string mask$) |
|
addInputNSpinner(int ID, string flags$, string mask$, int min, int max) |
|
addInputNSpinner(int ID, string flags$, string mask$, string rules$) |
|
addInputNSpinner(int ID, string flags$, string mask$, string rules$, int restore, int value) |
|
addInputNSpinner(int ID, string flags$, string mask$, string rules$, int restore, int value, int min, int max) |
|
addInputNSpinner(int min, int max) |
|
addInputNSpinner(string flags$) |
|
addInputNSpinner(string flags$, int min, int max) |
|
addInputNSpinner(string flags$, string mask$) |
|
addInputNSpinner(string flags$, string mask$, int min, int max) |
|
addInputNSpinner(string flags$, string mask$, string rules$) |
|
addInputNSpinner(string flags$, string mask$, string rules$, int restore, int value) |
|
addInputNSpinner(string flags$, string mask$, string rules$, int restore, int value, int min, int max) |
Parameters
Variable |
Description |
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID |
INPUTN control ID. |
||||||||||||||||
x |
Horizontal position of the upper-left corner of the INPUTN control. |
||||||||||||||||
y |
Vertical position of the upper-left corner of the INPUTN control. |
||||||||||||||||
w |
Width of the INPUTN control. |
||||||||||||||||
h |
Height of the INPUTN control. To create a standard size control, set the h parameter to 0. |
||||||||||||||||
flags$ |
Control flags, as follows:
|
||||||||||||||||
mask$ |
Output mask. If the "0" mask is used and SETOPTS byte 2, bit $80$ is set, it will not be possible to insert values. Either disable the SETOPTS bit or use the "#" mask. |
||||||||||||||||
rules$ |
Input rules. If null, the value in STBL("!IRULES") is used as a default. The mask$ is used to generated the edit mask, which uses "#", "0", and "." mask characters.
|
||||||||||||||||
restore |
Restore value. |
||||||||||||||||
val |
Default value. |
||||||||||||||||
min |
The minimum value to which the spinner may spin |
||||||||||||||||
max |
The maximum value to which the spinner may spin |
Return Value
Returns the created object.
Remarks
A BBjInputNSpinner adds spinner functionality to a standard BBjInputN control.
If the ID parameter is not specified, a control ID is assigned dynamically using getAvailableControlID().
If the x, y, width, and height parameters are not specified, they're all initialized to 0. This is typically for use with DWC windows that dynamically arrange their contents (window creation flag $00100000$).
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.