The Special Properties of the status bar control are reflective of the demands of the underlying Windows API. Two rules apply
in the case when you specify a multi-panel status bar:
- The text is the last item processed before the display is performed. If you do not set the number of panels before you specify
the text, the status bar is forced into single panel configuration.
- The style of a panel is set in accordance with whatever is active at the moment. Thus, if you set the style after the text,
it has no effect.
You should, therefore, observe this specific sequence of properties when DISPLAYing or MODIFYing a status bar:
- PANEL-WIDTHS, followed by the array;
- PANEL-STYLE, followed by the array;
- PANEL-TEXT, followed by the array;
- GRIP.
So the syntax will look like this:
DISPLAY STATUS-BAR
PANEL-WIDTHS ( 5, 10, 20 )
PANEL-STYLE ( 0, 2, 2 )
PANEL-TEXT ( "Panel 1", "Panel 2", "Panel 3" )
GRIP.