Status line enhancement: The top and bottom status lines can now be displayed using a proportional font, as an alternative to the traditional fixed pitch font. To configure this option, the AG_STATUSLINES command has been enhanced:
? tab(-10,AG_STATUSLINES); stslin; ","; visible; ","; textmode; chr(127);
Parameters
stslin
Character code indicating which status line is being impacted.
Value |
Description |
---|---|
1 |
Top status line |
2 |
Bottom status line |
3 |
System status line |
visible
Value |
Description |
---|---|
0 |
Invisible |
1 |
Visible |
"" |
No change |
textmode
Value |
Description |
---|---|
0 |
Fixed pitch font |
1 |
Proportional font |
The default textmode is 0, but automatically switches to 1 if any GUI controls are created before an explicit AG_STATUSLINES command is issued. (The assumption here is that if you are using GUI text or other controls in the window, you would probably want the status line text to also use that mode.) Once you issue an AG_STATUSLINES command, the mode stays fixed (until another AG_STATUSLINES command changes it).
Note that the number of characters allowed on the status line does not change between modes, even though typically proportional text is more compact. Also, the proportional text is tokenized (similar to the way the OPTIONS=GUI_SPC_IND feature works) so that any text tokens preceded by two or more spaces will be repositioned to start in the same position as it would have in fixed pitch mode.