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.



______________________________________________________________________________________

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