Hackers Guide to Visual FoxPro 7.0
Set Status Bar, Set Status, Set Scoreboard, Set("Status Bar"), Set("Status"), Set("Scoreboard")
The first two commands here control the status bar at the bottom of the screen. SET SCOREBOARD doesn't do anything, but it's historically related to the other two.| Usage | SET STATUS BAR ON | OFF SET STATUS ON | OFF SET STATUS TIMEOUT TO [ nSeconds ] cStatusBarOn = SET( "STATUS BAR" ) cStatusOn = SET( "STATUS" ) |
| | VFP 7 introduced a nasty interaction between the two status bars. If you have a program editing window (MODIFY COMMAND) open and SET STATUS ON, the editing window acquires an ugly, DOS-like status bar at the top. If you then SET STATUS BAR ON, the window's status bar doesn't go away, even though VFP regains it's Windows-style status bar. We don't even see the window-level status bar in earlier versions of VFP. |
SET STATUS TIMEOUT has nothing to do with the Xbase-style status bar, despite the command it looks like, and despite its misplacement in the VFP 3 Help file. (It's undocumented in VFP 5 and later.) Just another case of overloading. Certain messages (like SET TALK output) appear in the Windows-style status bar. This command lets you determine how long they stay there before the normal status information returns. Leave out nSeconds to reset to the five-second default. The maximum value accepted is 2,147,483,647 and, no, we didn't test it. Well, just a little. Numbers over a few million seem to be ignored.
The SET() functions let you figure out which status bar (if either) is on. We haven't found a way to determine the status timeout setting. SET SCOREBOARD is totally ignored in Visual FoxPro—so much so, that it no longer has a topic in the Help file. Way back when, it determined where the CapsLock, NumLock and Insert indicators appeared.| Example | SET STATUS TIMEOUT TO 2 SET STATUS BAR ON |
| See Also | Set Clock, Set Notify, Set Talk |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.
Категории