BBjChildWindow
Description
The BBjChildWindow is a child window that must be created within a BBjWindow. The window that the child window is created in will be the child's parent window. BBjChildWindow extends from BBjWindow and implements methods within BBjWindow and BBjControl.
See Child Windows for an introduction to child windows.
Implemented Interfaces
TabTraversable (BBj 15.0 and higher)
Creation
BBjAPI > BBjSysGui > BBjWindow > BBjChildWindow
A BBjChildWindow object is created through the following BBjWindow methods:
Return Value |
Method |
---|---|
BBjChildWindow |
addChildWindow(int ID, number x, number y, number w, number h, int context) |
BBjChildWindow |
addChildWindow(int ID, number x, number y, number w, number h, string title, int context) |
BBjChildWindow |
addChildWindow(int ID, number x, number y, number w, number h, string title, string flags, int context) |
BBjChildWindow |
addChildWindow(int ID, number x, number y, number w, number h, string title, string flags, int context, string eventMask) |
BBjChildWindow |
addChildWindow(int ID, int context) |
BBjChildWindow |
addChildWindow(int ID, string title, int context) |
BBjChildWindow |
addChildWindow(int ID, string title, String flags, int context) |
BBjChildWindow |
addChildWindow(int ID, string title, String flags, int context, string eventMask) |
BBjChildWindow |
addChildWindow(int context) |
BBjChildWindow |
addChildWindow(string title, int context) |
BBjChildWindow |
addChildWindow(string title, String flags, int context) |
BBjChildWindow |
addChildWindow(string title, String flags, int context, string eventMask) |
Methods of BBjChildWindow
Return Value |
Method |
---|---|
int |
|
void |
setBorderColor(BBjColor color!) |
void |
setDockLocation(int dock) |
Methods of BBjChildWindow implemented for MouseWheelEnabled
Return Value | Method |
---|---|
int | getScrollWheelBehavior() |
void | setScrollWheelBehavior(int trav) |
Methods of BBjChildWindow implemented for TabTraversable
Return Value | Method |
---|---|
boolean | isTabTraversable() |
void | setTabTraversable(boolean trav) |
Methods of BBjChildWindow inherited from BBjWindow
Methods of BBjChildWindow inherited from BBjControl
Events
Callback Code |
Object-oriented Event |
Read Record Event |
Code |
---|---|---|---|
ON_DOUBLE_CLICK |
2 |
||
ON_KEYPRESS |
t |
||
ON_MOUSE_DOWN |
d |
||
ON_MOUSE_ENTER |
E |
||
ON_MOUSE_EXIT |
E |
||
ON_MOUSE_MOVE |
m |
||
ON_MOUSE_SCROLL |
w |
||
ON_MOUSE_UP |
u |
||
ON_RESIZE (BBj 22 and higher) |
BBjResizeEvent | Window Resize | S |
ON_RIGHT_MOUSE_DOWN |
R |
||
ON_POPUP_REQUEST |
r |
||
ON_WINDOW_GAINED_FOCUS |
F |
||
ON_WINDOW_LOST_FOCUS |
F |
||
ON_WINDOW_SCROLL |
p |
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 BBjChildWindow defines the following style names:
.BBjChildWindow
.BBjChildWindow-border
BBjChildWindows have a default 1px black border, which can be omitted when the control is created. That border color can be changed with the following CSS:
.BBjChildWindow-border { background-color: gray; } |
Remarks
None.
Constants
None.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.