BBjCheckBox
Description
The BBjCheckBox object provides methods for manipulating a GUI check box control.
Implemented Interfaces
DropTarget, Editable, Focusable, RecordSetBindable,SimpleRecordSetBindable,TabTraversable, TextAlignable, Validateable
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjCheckBox
A BBjCheckBox object is created through the following BBjWindow methods:
|
Return Value |
Method |
|---|---|
|
BBjCheckBox |
addCheckBox(int ID, number x, number y, number width, number height, string title) addCheckBox(int ID, number x, number y, number width, number height, string title, string flags) addCheckBox(int ID, string title) addCheckBox(int ID, string title, String flags) addCheckBox(string title) addCheckBox(string title, String flags) |
Creation Flags
| Flag | Description |
|---|---|
| $0001$ |
Causes the control to be initially disabled. |
| $0002$ |
Places title text to the left of the control. |
| $0004$ |
Sets the control to be initially checked. |
| $0010$ |
Causes the control to be initially invisible. |
| $0020$ |
Designates the control to be part of a keyboard navigation group. |
| $0800$ |
Draws a recessed client edge around the control. |
| $1000$ |
Draws a raised edge around the control. |
Methods of BBjCheckBox
| Return Value | Method |
|---|---|
|
int |
|
|
boolean |
isEditable(int editable) |
|
boolean |
|
|
void |
setEditable(boolean editable) |
|
void |
setHorizontalTextPosition(int position) |
|
void |
setSelected(boolean selected) |
Methods of BBjCheckBox implemented for DropTarget
| Return Value | Method |
|---|---|
|
int |
|
|
void |
setDropActions(int actions) |
|
void |
setDropTypes(BBjVector types) |
Methods of BBjCheckBox implemented for Editable
| Return Value | Method |
|---|---|
|
boolean |
|
|
void |
setEditable(boolean edit) |
Methods of BBjCheckBox implemented for Focusable
| Return Value | Method |
|---|---|
|
boolean |
|
|
void |
setFocusable(boolean focus) |
Methods of BBjCheckBox implemented for RecordSetBindable
| Return Value | Method |
|---|---|
|
void |
bindRecordSet(BBjRecordSet recordset!, String fieldname) |
|
String |
Methods of BBjCheckBox implemented SimpleRecordSetBindable
| Return Value | Method |
|---|---|
|
void |
Methods of BBjCheckBox implemented for TabTraversable
| Return Value | Method |
|---|---|
|
boolean |
|
|
void |
setTabTraversable(boolean trav) |
Methods of BBjCheckBox implemented for TextAlignable
| Return Value | Method |
|---|---|
|
int |
|
|
void |
setAlignment(int align) |
Methods of BBjCheckbox implemented for Validateable
| Return Value | Method |
|---|---|
|
void |
accept(boolean valid) |
|
string |
Methods of BBjCheckBox inherited from BBjControl
Events
| Callback Code | Object-oriented Event | Read Record Event | Code |
|---|---|---|---|
| ON_CHECK_CHANGE | BBjCheckChangeEvent | Check/Uncheck Event | c |
|
ON_CHECK_OFF |
c |
||
|
ON_CHECK_ON |
c |
||
|
ON_CONTROL_VALIDATION |
v |
||
|
ON_DROP_TARGET_DROP |
D |
||
|
ON_GAINED_FOCUS |
f |
||
|
ON_LOST_FOCUS |
f |
||
|
ON_MOUSE_ENTER |
E |
||
|
ON_MOUSE_EXIT |
E |
||
|
ON_POPUP_REQUEST |
r |
||
|
ON_RIGHT_MOUSE_DOWN |
R |
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.
The BBjCheckBox is implemented as an <input
type="checkbox"> element with an associated label.
It defines the following style names:
| Style Names |
|---|
|
.BBjCheckBox |
|
.BBjCheckBox.bbj-checked |
|
.BBjCheckBox.bbj-disabled |
|
.BBjCheckBox.bbj-focused |
|
.BBjCheckBox.bbj-readonly |
HTML checkbox and radiobutton elements are notoriously difficult to style.
Constants inherited from BBjControl
Example
|
See Also
CHECKBOX Mnemonic - Create Check Box Control BBj
CALLBACK Verb - Register BBj Subroutine
DWC Component: dwc-checkbox
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.