BBjCheckBox
Creation Path
BBjAPI
|
+--BBjSysGui
|
+--BBjWindow
|
+--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
A BBjCheckBox object is created through the following BBjWindow methods:
Return Value
Method
BBjCheckBox
addCheckBox (int ID , int x , int y , int width , int height , string title )
BBjCheckBox
addCheckBox (int ID , int x , int y , int width , int height , string title , string flags )
Methods of BBjCheckBox
Methods of BBjCheckBox implemented for DropTarget
Methods of BBjCheckBox implemented for Editable
Methods of BBjCheckBox implemented for Focusable
Methods of BBjCheckBox implemented for RecordSetBindable
Methods of BBjCheckBox implemented SimpleRecordSetBindable
Methods of BBjCheckBox implemented for TabTraversable
Methods of BBjCheckBox implemented for TextAlignable
Methods of BBjCheckbox implemented for Validateable
Methods of BBjCheckBox inherited from BBjControl
Events
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:
.BBjCheckBox
.BBjCheckBox.bbj-checked
.BBjCheckBox.bbj-disabled
.BBjCheckBox.bbj-focused
.BBjCheckBox.bbj-readonly
HTML checkbox and radiobutton elements are notoriously difficult to style.
Remarks
None.
Example
Rrem ' BBjCheckBox
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(25,25,200,200,"BBjCheckBox",$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
cb1! = window!.addCheckBox(101,25,25,150,25,"CheckBox1",$0000$)
cb1!.setCallback(cb1!.ON_CHECK_ON,"event")
cb1!.setCallback(cb1!.ON_CHECK_OFF,"event")
cb2! = window!.addCheckBox(102,25,50,150,25,"CheckBox2",$0000$)
cb2!.setCallback(cb2!.ON_CHECK_ON,"event")
cb2!.setCallback(cb2!.ON_CHECK_OFF,"event")
cb3! = window!.addCheckBox(201,25,100,150,25,"CheckBox3",$0020$)
cb3!.setCallback(cb3!.ON_CHECK_ON,"event")
cb3!.setCallback(cb3!.ON_CHECK_OFF,"event")
cb4! = window!.addCheckBox(202,25,125,150,25,"CheckBox4",$0024$)
cb4!.setCallback(cb4!.ON_CHECK_ON,"event")
cb4!.setCallback(cb4!.ON_CHECK_OFF,"event")
process_events
event:
event! = sysgui!.getLastEvent()
i = msgbox(event!.getCheckBox().getText(),0,event!.getEventName())
return
eoj:
release
See Also
BBjAPI
BBjSysGui
BBjWindow
CHECKBOX Mnemonic - Create Check Box Control BBj
CALLBACK Verb - Register BBj Subroutine
Focusable
RecordSetBindable
TabTraversable
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.