SetStatusBar()
Summary
Sets the number and size of sections in the status bar.
Syntax
SetStatusBar(array sizes)
| Argument | Contents |
|---|---|
| sizes | Numbers indicating the width of each section of the status bar |
Notes
-
If sizes is null, the status bar is removed from the screen; otherwise, the status bar has as many pieces as there are elements of the sizes array.
-
Widths of each piece are specified as a number of characters, and can be real numbers.
-
The last two sections are used for the Stop and Skip buttons, and their widths can be set to 1; if you want three sections for your own use, you need to create five sections. The buttons are inserted to the right of the first section of the status bar, shifting other sections as necessary.
Example
SetStatusBar({40, 30, 20, 1, 1}) // Three sections in the status bar, plus buttons
SetStatus(1, "@System1", )
Error Codes
| Error Type | Meaning |
|---|---|
| Error | The sizes array contains non-numeric elements |
See Also
| Function | Summary |
|---|---|
| SetStatus() | Sets the contents of a section of the status bar |
| CreateStopSkipButtons() | Adds stop and skip buttons to the status bar for use in interrupting map drawing |