Skip to content

Class: dbFloatingPopupMenu

Properties | Events | Methods | Index of Classes

Creates standard data-aware (DEO) floating popup menus

Hierarchy

cObject > cUIObject > DfBaseObject > DfBaseWindow > DfBaseUIWindow > DfBaseControl > DfBaseList > DfBaseActionBar > DfBasePullDown > DfBaseEditPullDown > FormFloatingPopupMenu > dbFloatingPopupMenu

Show full hierarchy and direct subclasses

Library: Windows Application Class Library

Package: dfDeoft.pkg

Description

This class is obsolete. Menus are now created using the cCJMenuBar class.

As of revision 12.1, DataFlex includes full support for Codejock Software's COM Xtreme CommandBars package for creating menus, toolbars and statusbars. See Using Menus, Toolbars and Statusbars for more information.

dbFloatingPopupMenu is used to create standard data-aware (DEO) floating popup menus. This is used to create a "right-mouse context menu" for db... form objects (dbForm, dbGrid, etc.). This creates a menu of items for standard form-edit operations (undo, cut, copy, paste, delete and select all) and standard database operations (prompt, find next, find previous, clear, clear all, delete, and save). In addition, each item is shadowed or not shadowed to indicate the availability of the option. An object is automatically created based on this class and all DEO form controls use this object.

Sample

The object dbFloatingMenu is created and is assigned to all db... forms.

Of Special Note

Automatic Floating Popup Menu By default, an object named dbFormFloatingMenu is created based on this class. DEO form-class objects (dbForm, dbGrid, etc.) use this object for floating context menu support. When the right mouse button is pressed in a DEO form, the form object is given the focus, and, if this focus change is successful, the popup message is sent to the dbFormFloatingMenu object. This causes the context menu to appear relative to the location of the mouse pointer. This provides support for the standard editing and database operations. All of this is provided automatically. No program changes are required to support this. In addition to this automatic support, a programmer interface is provided to customize these behaviors.

Assigning a floating menu to a DEO form

When a program is run, an object named dbFormFloatingMenu is created based on this class. In addition, a global integer, default_dbFloating_Menu_id, is created which contains the object ID of dbFormFloatingMenu. The form DEO property floating_menu_object is set to this value by default. This is the method used to assign a DEO to a floating context menu. If you wish to assign a different floating menu to a form, you may either set the DEO's floating_menu_object property or you may change the value of Global Integer default_dbFloating_menu_Id. You would do the later if you wished to change the assignment of floating menus within all DEO forms.

Refer to the code in the package. It demonstrates how to create custom floating popup menus.