BBjTopLevelWindow::setTitleBarVisible

Description

In BBj 7.0 and higher, this method sets whether the title bar and frame on a BBjTopLevelWindow is visible.

Syntax

Return Value

Method

void

setTitleBarVisible(boolean visible)

Parameters

Variable

Description

visible

Whether the window's title bar and frame should be visible.

Return Value

None.

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.