BBjMDI::addStatusBar

Description

In BBj 3.0 and higher, this method adds a status bar at the bottom of the BBjMDI window.

Syntax

Return Value

Method

BBjStatusBar

addStatusBar()

BBjStatusBar

addStatusBar(string flags)

Parameters

Variable

Description

Variable

Description

flags

Specifies the control flag, as follows:

Flag

Description

$0001$

Sets the control to be initially disabled.

$0010$

Sets the control to be initially invisible.

$0020$

Displays the status bar on top of the window.

$2000$

Left justifies status bar text.

$4000$

Centers status bar text.

$0800$ 

Right justifies status bar text.

Return Value

Returns the created BBjStatusBar object.

Remarks

None.

Example

open (unt)"X0"
bbj! = BBjAPI()
MDI! = bbj!.getMDI()
mdi!.createMDIWindow(50, 50, 800, 600, "MDI Window")
myStatBar! = mdi!.addStatusBar($4000$); REM gets a statusBar with centered text
myStatBar!.setText("Centered Text")
escape

See Also

BBjAPI

BBjMDI

Object Variables

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