BBjTopLevelWindow::isTitleBarVisible

Description

In BBj 7.0 and higher, this method returns true if the BBjTopLevelWindow's title bar and frame are visible.

Syntax

Return Value

Method

boolean

isTitleBarVisible()

Parameters

None.

Return Value

Returns whether the BBjTopLevelWindow's title bar and frame are visible.

Remarks

None.

Example

REM Create BBjWindow Objects

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 Set common addWindow param values
X=10
Y=10
WIDTH=200
HEIGHT=200

REM Create a window with a title in the current context
TITLE$="BBjWindow Destroy Example"
REM Set the current context
mySysGui!.setContext(0)
myWindow! = mySysGui!.addWindow(X,Y,WIDTH,HEIGHT,TITLE$)

REM ' Will print 1
PRINT myWindow!.isTitleBarVisible()

myWindow!.setTitleBarVisible(0)

REM ' Will print 0
PRINT myWindow!.isTitleBarVisible()

ESCAPE

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

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



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.