BBjSysGui::getWindow
Description
Returns the BBjWindow object associated with the specified context. If the window is a top level window, it can be cast to a BBjTopLevelWindow with the CAST() Function(). If the window is a child window, then it can be cast to a BBjChildWindow.
In BBj 8.0 and higher, this method can also return a window with a specified name.
Syntax
Return Value |
Method |
getWindow(int contextID) |
|
getWindow(string name) |
Parameters
Variable |
Description |
contextID |
Specifies the context ID of a previously created window. |
name |
Specifies the name of a previously created window. |
Return Value
Returns the BBjWindow object associated with the specified context ID or name.
Remarks
In BBj 8.0 and higher, the getWindow(string name) version throws an exception if there are no windows, or more than one window, with the specified name.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.