_Screen
This system variable makes it easy to manipulate the main Visual FoxPro window. It contains an object reference to the window that you can use to manipulate the window's properties.
Usage |
_SCREEN.Property = uValue uValue = _SCREEN.Property _SCREEN.Method() |
There are a few items that aren't restored by this—one that we know of is DrawWidth. Some items are restored in practice, but _SCREEN's properties are wrong. BackColor is one like that. |
Example |
* Personalize the screen _SCREEN.Caption = "Hacker's Visual FoxPro" _SCREEN.BackColor = RGB(0,0,255) _SCREEN.ForeColor = RGB(255,255,255) * or: MODIFY WINDOW SCREEN TITLE " Hacker's Visual FoxPro" COLOR W+/B * Call a method of the active form without knowing what form * is in charge _SCREEN.ActiveForm.SaveRecord() |
See Also |
ActiveForm, hWnd, Modify Window, SaveAsClass, ShowInTaskBar, _VFP |