Condividi tramite


MODIFY WINDOW Command

Modifies a user-defined window or the main Visual FoxPro window.

MODIFY WINDOW WindowName | SCREEN 
[FROM nRow1, nColumn1 TO nRow2, nColumn2
   | AT nRow3, nColumn3 SIZE nRow4, nColumn4]
   [FONT cFontName [, nFontSize [, nFontCharSet]]] [STYLE cFontStyle]
   [TITLE cTitleText] [HALFHEIGHT] [DOUBLE | PANEL | NONE | SYSTEM]
   [CLOSE | NOCLOSE] [FLOAT | NOFLOAT] [GROW | NOGROW]
   [MINIMIZE | NOMINIMIZE] [ZOOM | NOZOOM] [ICON FILE FileName1]
   [FILL FILE FileName2] 
   [COLOR SCHEME nSchemeNumber | COLOR ColorPairList]

Parameters

  • WindowName
    Specifies which user-defined window to modify. The window you specify must first be created with DEFINE WINDOW.

  • SCREEN
    Specifies the main Visual FoxPro window as the window to modify. Do not abbreviate SCREEN or Visual FoxPro generates an error message. To return the main Visual FoxPro window to its startup configuration, issue the following command without any additional clauses:

    MODIFY WINDOW SCREEN
    

    Tip

    Use MODIFY WINDOW SCREEN NOCLOSE to prevent accidentally terminating Visual FoxPro prematurely.

For more information about the MODIFY WINDOW clauses, see DEFINE WINDOW Command.

Remarks

MODIFY WINDOW changes the attributes of an existing user-defined window (a window created with DEFINE WINDOW) or the main Visual FoxPro window. MODIFY WINDOW can't be used to change the attributes of Visual FoxPro system windows (such as the Command window and Browse window).

Use MODIFY WINDOW to change the location, default font, title, border, controls, icon, wallpaper, and color of a user-defined window or the main Visual FoxPro window. You can change any of these attributes by including the optional clauses for the MODIFY WINDOW command. (Note that if you change colors, you must use CLEAR to apply the color changes.)

For example, include the FROM and TO or AT and SIZE clauses to specify a new location or size for a user-defined window or the main Visual FoxPro window. To prevent a user-defined window or the main Visual FoxPro window from being moved, include the NOFLOAT keyword.

Example

The following example changes the contents of the title bar of the main Visual FoxPro window.

MODIFY WINDOW SCREEN TITLE 'My Application'

See Also

Reference

DEFINE WINDOW Command

_SCREEN System Variable

Other Resources

Commands (Visual FoxPro)