BBjGroupBox
Description
The BBjGroupBox object provides methods for manipulating a GUI group box control.
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjGroupBox
A BBjGroupBox object is created through the following BBjWindow methods:
Return Value |
Method |
---|---|
addGroupBox(int ID, number x, number y, number w, number h, string title) |
|
addGroupBox(int ID, number x, number y, number w, number h, string title, string flags) |
|
addGroupBox(int ID, String title) | |
addGroupBox(int ID, String title, String flags) | |
addGroupBox(String title) | |
addGroupBox(String title, String flags) |
Methods of BBjGroupBox inherited from BBjControl
Events
Callback Code |
Object-oriented Event |
Read Record Event |
Code |
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 BBjGroupBox is implemented as a <fieldset> element; the text is a <legend> element. Here's a very simple groupbox:
sysgui = unt open (sysgui)"X0" sysgui! = bbjapi().getSysGui() window! = sysgui!.addWindow(25,25,300,100,"GroupBox",$00090003$) window!.setCallback(window!.ON_CLOSE,"eoj") groupbox! = window!.addGroupBox(101,25,25,250,50,"GroupBox",$$) process_events eoj: release |
By default, it looks like this:
The BBjGroupBox defines the following style names:
.BBjGroupBox (the primary style name)
.BBjGroupBox.bbj-disabled (the element is disabled)
.BBjGroupBox legend (the title)
The following sample CSS makes the BBjGroupBox border and text green and moves the text to the middle, with a box around it.
.BBjGroupBox { border: 1px solid green; border-radius: 10px; } .BBjGroupBox legend { border: 1px solid green; color: green; text-align: center; font-weight: bold; } |
Remarks
None.
Constants inherited from BBjControl
Example
|
See Also
GROUPBOX Mnemonic - Create a Group Box Control
CALLBACK Verb - Register BBj Subroutine
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.