BBjWindow::addChildWindow
Description
Adds a child window in the BBjWindow.
Syntax
Return Value |
Method |
---|---|
BBjChildWindow | addChildWindow(int context) |
BBjChildWindow | addChildWindow(int ID, int context) |
addChildWindow(int ID, number x, number y, number w, number h, int context) |
|
addChildWindow(int ID, number x, number y, number w, number h, string title, int context) |
|
addChildWindow(int ID, number x, number y, number w, number h, string title, string flags, int context) |
|
addChildWindow(int ID, number x, number y, number w, number h, string title, string flags, int context, string eventMask) |
|
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(string title, int context) |
BBjChildWindow | addChildWindow(string title, string flags, int context) |
BBjChildWindow | addChildWindow(string title, string flags, int context, string eventMask) |
Parameters
Variable |
Description |
||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID |
Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window. |
||||||||||||||||||||||||||||||||||||
x |
Horizontal position of the upper-left corner of the child window. |
||||||||||||||||||||||||||||||||||||
y |
Vertical position of the upper-left corner of the child window. |
||||||||||||||||||||||||||||||||||||
w |
Width of the child window, in pixels. |
||||||||||||||||||||||||||||||||||||
h |
Height of the child window, in pixels. |
||||||||||||||||||||||||||||||||||||
title |
Title of the child window. |
||||||||||||||||||||||||||||||||||||
flags |
Control flags, as follows:
|
||||||||||||||||||||||||||||||||||||
context |
An empty context for the child window to occupy. The child can then be referenced either by its ID number from within the parent context or by the ID 0 from its own context. Either method can be used in most cases. |
||||||||||||||||||||||||||||||||||||
eventMask |
Event mask to be applied to the child window. For additional information, see SYSGUI Event Queue. |
Return Value
Returns the created BBjWindow object.
Remarks
If the ID parameter is not specified, a control ID is assigned dynamically using getAvailableControlID().
If the x, y, width, and height parameters are not specified, they are all initialized to 0. This is typically for use with DWC windows that dynamically arrange their contents (window creation flag $00100000$).
Example
|
See Also
CHILD Mnemonic - Create a Child Window
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.