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.