BBjInputNSpinner

Creation Path


BBjAPI

|

+--BBjSysGui

|

+--BBjWindow

|

+--BBjInputNSpinner

 

Description

The BBjInputNSpinner object a spinner control on a standard BBjInputN.

Implemented Interfaces

DragSource, DropTarget, Editable, Focusable, MouseWheelEnabled, RecordSetBindable, TabTraversable, TextAlignable, Validateable

In BBj 15.0 and higher: TextControl

Creation

A BBjInputNSpinner object is created through the following BBjWindow methods:

Return Value

Method

BBjInputNSpinner

addInputNSpinner(BBjNumber ID, BBjNumber x, BBjNumber y, BBjNumber w, BBjNumber h)

BBjInputNSpinner

addInputNSpinner(BBjNumber ID, BBjNumber x, BBjNumber y, BBjNumber w, BBjNumber h, BBjNumber min, BBjNumber max)

BBjInputNSpinner

addInputNSpinner(BBjNumber ID, BBjNumber x, BBjNumber y, BBjNumber w, BBjNumber h, string flags$)

BBjInputNSpinner

addInputNSpinner(BBjNumber ID, BBjNumber x, BBjNumber y, BBjNumber w, BBjNumber h, string flags$, BBjNumber min, BBjNumber max)

BBjInputNSpinner

addInputNSpinner(BBjNumber ID, BBjNumber x, BBjNumber y, BBjNumber w, BBjNumber h, string flags$, string mask$)

BBjInputNSpinner

addInputNSpinner(BBjNumber ID, BBjNumber x, BBjNumber y, BBjNumber w, BBjNumber h, string flags$, string mask$, BBjNumber min, BBjNumber max)

BBjInputNSpinner

addInputNSpinner(BBjNumber ID, BBjNumber x, BBjNumber y, BBjNumber w, BBjNumber h, string flags$, string mask$, string rules$)

BBjInputNSpinner

addInputNSpinner(BBjNumber ID, BBjNumber x, BBjNumber y, BBjNumber w, BBjNumber h, string flags$, string mask$, string rules$, BBjNumber restore, BBjNumber value)

BBjInputNSpinner

addInputNSpinner(BBjNumber ID, BBjNumber x, BBjNumber y, BBjNumber w, BBjNumber h, string flags$, string mask$, string rules$, BBjNumber restore, BBjNumber value, BBjNumber min, BBjNumber max)

Methods of BBjInputNSpinner

Return Value

Method

BBjNumber

getMaximum()

BBjNumber

getMinimum()

boolean

getNegateable()

BBjNumber

getNextNumber()

BBjNumber

getPreviousNumber()

BBjNumber

getStepSize()

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

getCaretPosition()

string

getCommaCharacter()

string

getDotCharacter()

string

getEditString()

int

getError()

boolean

getHighlight()

boolean

getInsertMode()

int

getLength()

string

getMask()

boolean

getPassEnter()

boolean

getPassTab()

string

getRestore()

boolean

getUseEditCommas()

float

getValue()

boolean

isEditable()

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 p_focus)

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 p_align)

Methods of of BBjInputNSpinner implemented TextControl

Return Value

Method

void

addWord(string word)

int

getBottomMargin()

string

getCustomDictionary()

BBjColor

getDisabledTextColor()

boolean

getDragEnabled()

int

getHighlightOnFocus()

int

getLeftMargin()

string

getLocale()

int

getMaxSuggestions()

BBjVector

getMisspelledWords()

string

getPlaceholder()

BBjColor

getPlaceholderColor()

int

getRightMargin()

BBjColor

getSpellCheckColor()

string

getSpellCheckLanguage()

boolean

getSpellCheckOption(int option)

BBjVector

getSuggestions(string word)

int

getTopMargin()

void

ignoreWord(string word)  

boolean

isMisspelled(string word)

boolean

isSpellChecked()

void

removeWord(string word)

void

setBottomMargin(int margin)

void

setCustomDictionary(string filename)

void

setDisabledTextColor(BBjColor color!)

void

setDragEnabled(boolean enabled)

void

setHighlightOnFocus(int behavior)

void

setLeftMargin(int margin)

void

setLocale(string locale)

void

setMaxSuggestions(int count)

void

setPlaceholder(string placeholder)

void

setPlaceholderColor(BBjColor color!)

void

setRightMargin(int margin)

void

setSpellCheckColor(BBjColor color!)

void

setSpellChecked(boolean check)

void

setSpellCheckLanguage(string language)

void

setSpellCheckOption(int option, boolean value)

void

setTopMargin(int margin)

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

BBjControlValidationEvent

Control Validation Event

v

ON_DROP_TARGET_DROP

BBjDropTargetDropEvent

Drop Target Drop Event

D

ON_EDIT_MODIFY

BBjEditModifyEvent

Edit Control Modify Event

e

ON_GAINED_FOCUS

BBjGainedFocusEvent

Control Focus Gained/Lost Event

f

ON_INPUT_KEYPRESS

BBjInputKeypress

Input Control Keypress

N (Notify Code 1)

ON_LOST_FOCUS

BBjLostFocusEvent

Control Focus Gained/Lost Event

f

ON_MOUSE_ENTER

BBjMouseEnterEvent

Mouse Enter/Exit Event

E

ON_MOUSE_EXIT

BBjMouseExitEvent

Mouse Enter/Exit Event

E

ON_POPUP_REQUEST

BBjPopupRequestEvent

Popup Request Event

r

ON_RIGHT_MOUSE_DOWN

BBjRightMouseDownEvent

Right Mouse Button Down Event

R

ON_SPIN

BBjSpinEvent

Spin Event

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

BBjAPI

BBjSysGui

BBjWindow

INPUTN Mnemonic - Create Numeric Edit (INPUTN) Control

CALLBACK Verb - Register BBj Subroutine

Focusable

RecordSetBindable

TabTraversable

TextAlignable

Validateable

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.