BBjWindow::createChildWindow
Description
In BBj 6.00 and higher, this method creates a BBjSysGui child window with a given control ID from a child window resource ID within an open resource.
Syntax
Return Value |
Method |
createChildWindow(int resHandle, int childWindowID, int controlID, number x, number y) |
|
createChildWindow(int resHandle, int childWindowID, int controlID, number x, number y, int context) |
Parameters
Variable |
Description |
---|---|
resHandle |
The handle of the open resource file returned from BBjSysGui::resOpen() or the RESOPEN() verb. |
childWindowID |
The ID of the CHILD-WINDOW attribute in the resource file to be created. |
controlID |
The control id to use on this window. |
x |
The x location of the child window. |
y |
The y location of the child window. |
context |
The context to use for the new child window. If this parameter is omitted, an available context will be chosen. |
Return Value
Returns a BBjChildWindow object loaded from the open resource file.
Remarks
When a foreign interpreter invokes this method, an !ERROR=208 Multi Thread Error results. See Accessing Objects From Different Interpreters.
Example
|
See Also
BBjSysGui::createTopLevelWindow
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.