JavaScript Editor js editor     Web development 

Main Page

This general purpose Window Handler class performs several common window operations such as cascading windows.

Category Application

Default Catalog

VisualВ FoxProВ Catalog\FoundationВ Classes\Application



Base Class


Class Library


Parent Class





To use, drop the class on a project or form or, from the Component Gallery Item shortcut menu, select Add to Project or Add to Form. When you add the class to a project, you can choose between adding the class or creating a subclass. When you add the class to a form, Visual FoxPro displays the icon on the form so you can specify appropriate properties values its available methods in the Form Designer.

See Guidelines for Using Visual FoxPro Foundation Classesfor more information on using foundation classes.

Properties, Events, Methods Description

IMDIWorkspaceColor property

Contains the Windows color for top-level frame window.

Default: 0

CascadeFormInstances method

Cascades forms.

Syntax: CascadeFormInstances(tcFormName, tlOmitAutoCenteredForms, tnStartTop, tnStartLeft, tnStartColumn)

Return: none

Arguments: tcFormName specifies the form or _screen in which to cascade forms.tlOmitAutoCenteredForms specifies whether to skip cascading for autocentered forms.tnStartTop specifies starting top coordinate.tnStartLeft specifies starting left coordinate.

GetCurrentTopFormRef method

Returns the current frame window. Use primarily for top-level form applications.

Syntax: GetCurrentTopFormReference(В )

Return: loTopForm

Arguments: none

IMDIWorkspaceColor_access(В )

Syntax: IMDIWorkspaceColor_access(В )

Return:В GetSysColor(12)

Argum ents: none

InvokeMenuItemInFrame method

Use to invoke menu items in top-level form applications to access certain system dialog boxes, such as the Find dialog box. Also use to implement a menu item in a dialog box that does not have a menu.

Syntax: InvokeMenuItemInFrame(tcAction)

Return: none

Arguments: tcAction specifies navigation action such as NEXT or PREVIOUS. You can also use the following actions: UNDO, REDO, CUT, COPY, PASTE, CLEAR, SELECTALL, FIND, FINDAGAIN, REPLACE.

ShowCurrentTopForm method

Internal to the class.

ShowWindowInFrame method

Internal to the class.

See Also

JavaScript Editor js editor     Web development