BBjInputNSpinner
Description
The BBjInputNSpinner object provides a spinner control on a standard BBjInputN.
Implemented Interfaces
DragSource, DropTarget, Editable, Focusable, MouseWheelEnabled, RecordSetBindable, TabTraversable, TextAlignable, Text Control, Validateable
In BBj 15.00 and higher: TextControl
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjInputNSpinner
A BBjInputNSpinner object is created through the following BBjWindow methods:
Return Value |
Method |
---|---|
addInputNSpinner(int ID, number x, number y, number w, number h) |
|
addInputNSpinner(int ID, number x, number y, number w, number h, float min, float 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) |
|
BBjInputNSpinner |
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) |
BBjInputNSpinner | addInputNSpinner(int ID) |
BBjInputNSpinner | addInputNSpinner(int ID, int min, int max) |
BBjInputNSpinner | addInputNSpinner(int ID, String flags$) |
BBjInputNSpinner | addInputNSpinner(int ID, String flags$, int min, int max) |
BBjInputNSpinner | addInputNSpinner(int ID, String flags$, String mask$) |
BBjInputNSpinner | addInputNSpinner(int ID, String flags$, String mask$, int min, int max) |
BBjInputNSpinner | addInputNSpinner(int ID, String flags$, String mask$, string rules$) |
BBjInputNSpinner | addInputNSpinner(int ID, String flags$, String mask$, string rules$, int restore, int value) |
BBjInputNSpinner | addInputNSpinner(int ID, String flags$, String mask$, string rules$, int restore, int value, int min, int max) |
BBjInputNSpinner | addInputNSpinner() |
BBjInputNSpinner | addInputNSpinner(int min, int max) |
BBjInputNSpinner | addInputNSpinner(String flags$) |
BBjInputNSpinner | addInputNSpinner(String flags$, int min, int max) |
BBjInputNSpinner | addInputNSpinner(String flags$, String mask$) |
BBjInputNSpinner | addInputNSpinner(String flags$, String mask$, int min, int max) |
BBjInputNSpinner | addInputNSpinner(String flags$, String mask$, string rules$) |
BBjInputNSpinner | addInputNSpinner(String flags$, String mask$, string rules$, int restore, int value) |
BBjInputNSpinner | addInputNSpinner(String flags$, String mask$, string rules$, int restore, int value, int min, int max) |
Methods of BBjInputNSpinner
Return Value |
Method |
---|---|
BBjNumber |
|
BBjNumber |
|
boolean |
|
BBjNumber |
|
BBjNumber |
|
BBjNumber |
|
void |
setMaximum(BBjNumber max) |
void |
setMinimum(BBjNumber min) |
void |
setNegateable(boolean negateable) |
void |
setStepSize(BBjNumber stepSize) |
Methods of BBjInputNSpinner inherited from BBjSpinner
Return Value |
Method |
---|---|
void |
spin(boolean up) |
Methods of BBjInputNSpinner inherited from BBjInputN
Return Value |
Method |
---|---|
int |
getBeep() |
int |
|
string |
|
string |
|
string |
|
int |
getError() |
boolean |
|
boolean |
|
int |
|
string |
getMask() |
boolean |
|
boolean |
|
string |
|
boolean |
|
float |
getValue() |
boolean |
|
void |
restore() |
void |
setBeep(boolean beep) |
void |
setCaretPosition(int pos) |
void |
setCommaCharacter(string comma) |
void |
setDotCharacter(string dot) |
void |
setEditable(boolean editable) |
void |
setEditString(string edit) |
void |
setHighlight(boolean highlight) |
void |
setInsertMode(boolean insert) |
void |
setLength(int len) |
void |
setMargin(int marginWidth) |
void |
setMask(string mask) |
void |
setPassEnter(int pass) |
void |
setPassTab(boolean pass) |
void |
setRestore(int restore) |
void |
setUseEditCommas(boolean useCommas) |
void |
setValue(float value) |
Methods of BBjInputNSpinner implemented for DragSource
Return Value | Method |
---|---|
int | getDragActions() |
string | getDragType() |
void | setDragActions(int actions) |
void | setDragType(string type) |
Methods of BBjInputNSpinner implemented for DropTarget
Return Value | Method |
---|---|
int | getDropActions() |
void | setDropActions(int actions) |
BBjVector | getDropTypes() |
void | setDropTypes(BBjVector types) |
Methods of BBjInputNSpinner implemented for Focusable
Return Value | Method |
---|---|
boolean | isFocusable() |
void | setFocusable(boolean focus) |
Methods of BBjInputNSpinner implemented for MouseWheelEnabled
Return Value | Method |
---|---|
int | getScrollWheelBehavior() |
void | setScrollWheelBehavior(int trav) |
Methods of BBjInputNSpinner implemented for RecordSetBindable
Return Value | Method |
---|---|
void | bindRecordSet(BBjRecordSet recordset!, string fieldname) |
string | getBoundFieldName() |
Methods of BBjInputNSpinner implemented for TabTraversable
Return Value | Method |
---|---|
boolean | isTabTraversable() |
void | setTabTraversable(boolean trav) |
Methods of BBjInputNSpinner implemented for TextAlignable
Return Value | Method |
---|---|
int | getAlignment() |
void | setAlignment(int align) |
Methods of BBjInputNSpinner implemented TextControl
Methods of BBjInputNSpinner implemented for Validateable
Return Value | Method |
---|---|
void | accept(boolean valid) |
string | getValidationText() |
Methods of BBjInputNSpinner inherited from BBjControl
Events
Callback Code |
Object-oriented Event |
Read Record Event |
Code |
---|---|---|---|
ON_CONTROL_VALIDATION |
v |
||
ON_DROP_TARGET_DROP |
D |
||
ON_EDIT_MODIFY |
e |
||
ON_GAINED_FOCUS |
f |
||
ON_INPUT_KEYPRESS |
N (Notify Code 1) |
||
ON_LOST_FOCUS |
f |
||
ON_MOUSE_ENTER |
E |
||
ON_MOUSE_EXIT |
E |
||
ON_POPUP_REQUEST |
r |
||
ON_RIGHT_MOUSE_DOWN |
R |
||
ON_SPIN |
x |
CSS
The visual appearance of BUI controls is defined using CSS (cascading style sheets) rules. Easily change the default colors, border, and other settings by customizing these rules, all without changing any application code. See CSS API for a high-level overview of BUI CSS.
For BBjSpinner samples, refer to the BUI Showcase (demo, code). The BBjInputNSpinner control contains a BBjInputN, followed by spinner arrows in a structure with the style name .BBjSpinner-arrows and either .BBjSpinner-horizontal-arrows or .BBjSpinner-vertical-arrows. It defines the following style names:
.BBjSpinner
.BBjInputNSpinner
.BBjInputNSpinner.bbj-disabled
.BBjInputNSpinner.bbj-focused
.BBjInputNSpinner.bbj-readonly
.BBjSpinner-arrows
.BBjSpinner-horizontal-arrows (on touch-oriented devices)
.BBjSpinner-vertical-arrows (on mouse-oriented systems)
.BBjSpinner-upArrow
.BBjSpinner-downArrow
Remarks
None.
Constants inherited from BBjControl
Example
See Also
INPUTN Mnemonic - Create Numeric Edit (INPUTN) Control
CALLBACK Verb - Register BBj Subroutine
DWC Component: dwc-numberfield-spinner
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.