Syntax
AppMaximize [WindowName$] [, State]
AppMaximize([WindowName$])
Remarks
In Windows, the AppMaximize statement maximizes or restores the specified application.
Argument | Explanation |
WindowName$ | A string that matches the beginning of an application window name, as it appears in the title bar or Task List (Windows). If omitted, Word is assumed. For more information on WindowName$, see AppActivate. |
State | Specifies whether to maximize or restore the application: 0 (zero) Restores the application 1 Maximizes the application Omitted Toggles between restored and maximized states If the state of the application changes, it is activated. If the state does not change (for example, if you run the instruction AppMaximize "Microsoft Excel", 1 and Microsoft Excel is already maximized), the application is not activated. |
The AppMaximize() function returns the following values.
Value | Explanation |
–1 | If the application is maximized |
0 (zero) | If the application is not maximized |
On the Macintosh, AppMaximize and AppMaximize() are not available and generate errors.
See Also
AppMinimize, AppMove, AppRestore, AppSize, DocMaximize