Navigation Shortcut Menu Foundation Class
This is a shortcut menu that can be dropped onto a form with items for common data navigation, sorting, filtering and finding options. You call this class from the RightClick event of a form.
Category |
Menus |
---|---|
Default Catalog |
Visual FoxPro Catalog\Foundation Classes\User Controls |
Class |
_navmenu |
Base Class |
Container |
Class Library |
_table2.vcx |
Parent Class |
_container |
Sample |
...\Samples\Solution\Ffc\datasort.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 form, Visual FoxPro prompts you to automatically add the necessary code to implement the shortcut menu. When you drop the class on a project, you can choose between adding the class or creating a subclass.
See Guidelines for Using Visual FoxPro Foundation Classesfor more information on using foundation classes.
Properties, Events, Methods |
Description |
---|---|
cClass property |
Specifies the class of the dialog box containing the shortcut menu. Default: "" |
cClasslib property |
Specifies the class library containing the class of the dialog box containing the shortcut menu. Default: "" |
DoMenu method . |
Runs a menu routine. Syntax: Domenu( ) Return: none Arguments: none |
RefreshForm method |
Refreshes the active form when data is updated. Syntax: RefreshForm( ) Return: none Arguments: none |
DeleteRecord method |
Deletes the current record. Syntax: DeleteRecord( ) Return: none Arguments: none |
AddRecord method |
Adds a new record. Syntax: AddRecord( ) Return: none Arguments: none |
DoFilter method |
Displays a filter dialog box. Syntax: DoFilter( ) Return: none Arguments: none |
DoGoto method |
Displays a GoTo dialog box. Syntax: DoGoto( ) Return: none Arguments: none |
DoSort method |
Displays a Sort dialog box. Syntax: DoSort( ) Return: none Arguments: none |
DoDialog method |
Displays a dialog box. Syntax: DoDialog( ) Return: none Arguments: none |
SetMenu method |
Specifies the menu contents through code containing AddMenuBar( ) expressions. Syntax: SetMenu( ) Return: none Arguments: none |
DoFilter2 method |
Displays an Advanced Filter dialog box. Syntax: DoFilter2( ) Return: none Arguments: none |
See Also
Concepts
Guidelines for Using Visual FoxPro Foundation Classes
Reference
Visual FoxPro Foundation Classes A-Z