BBjChildWindow::getParentWindow

Description

Returns the child window's parent as either a BBjChildWindow or BBjTopLevelWindow.

Syntax

Return Value

Method

BBjWindow

getParentWindow()

Parameters

None.

Return Value

Returns either a BBjChildWindow or BBjTopLevelWindow, depending on whether parent is a child or top level window.

Example

rem 'get parent window

rem 'Obtain the instance of the BBjAPI object
let myAPI! = BBjAPI()

rem 'Open the SysGui device
SYSGUI = UNT
OPEN (SYSGUI) "X0"

rem 'Obtain the instance of the BBjSysGui object
let mySysGui! = myAPI!.getSysGui()

rem 'Create the main window, initially invisible
myWindow! = mySysGui!.addWindow(100,100,650,230,"Parent",$00000012$)
myWindow!.addChildWindow(100,50,50,200,200,1)
child! = mySysGui!.getWindow(1)
parent! = child!.getParentWindow()
print parent!

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

CHILD Mnemonic - Create a Child Window

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