BBjStatusBar::setAlignmentAt

Description

Sets the horizontal alignment of a segment in the BBjStatusBar control.

Syntax

Return Value Method
void setAlignmentAt(int index, int align)

Parameters

If none, delete the following table:

Variable Description
index Specifies the 0-based segment.
align

LEFT – left horizontal alignment

CENTER – center horizontal alignment

RIGHT – right horizontal alignment

Return Value

None.

Example

Copy
BBjStatusBar::setAlignmentAt Example
rem ' BBjStatusBar::setAlignmentAt
sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
title$ = "BBjStatusBar::setAlignmentAt"
window! = sysgui!.addWindow(25,25,300,100,title$,$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
statusbar! = window!.addStatusBar(1)
statusbar!.setTextAt(0,"This is a status bar")
statusbar!.setAlignmentAt(0,BBjStatusBar.CENTER)
process_events
eoj:
release

See Also

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

BBjAPI

BBjSysGui

BBjControl

BBjWindow