BBjControl::getParentWindow

Description

In BBj 17.00 and higher, this method returns the parent BBjWindow of the BBjControl.

Syntax

Return Value Method
BBjWindow getParentWindow()

Parameters

None.

Return Value

Returns the parent BBjWindow of the BBjControl.

Remarks

BBjTopLevelWindow::getParentWindow() returns a reference to itself.

Example

rem ' getParentWindow

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(100,100,200,200,"getParentWindow",$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
child! = window!.addChildWindow(100,25,25,150,150,"",$$,1,$$)
button! = child!.addButton(1,25,25,100,25,"Button",$$)
print button!," getParentWindow() = ",button!.getParentWindow()
print child!," getParentWindow() = ",child!.getParentWindow()
print window!," getParentWindow() = ",window!.getParentWindow()
process_events

eoj:
release

See Also

BBjAPI

BBjSysGui

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.