Compartir a través de


Window Handler Foundation Class

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

Class

_windowhandler

Base Class

Custom

Class Library

_ui.vcx

Parent Class

_custom

Sample

...\Samples\Solution\Ffc\whandler.scx

Remarks

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

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Foundation Class Samples