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.