Skip to content

Class: ViewPopupMenu

Properties | Events | Methods | Index of Classes

Creates popup menu objects that will redirect item messages to the MDI container area object

Hierarchy

cObject > cUIObject > DfBaseObject > DfBaseWindow > DfBaseUIWindow > DfBaseControl > DfBaseList > DfBaseActionBar > DfBasePullDown > PopupMenu > ViewPopupMenu

Show full hierarchy and direct subclasses

Library: Windows Application Class Library

Package: Dfdeomnu.pkg

Description

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

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.

ViewPopupMenu creates popup menu objects that will redirect item messages to the MDI container area object. This is used to activate views from a popup menu. View activation messages must be sent to the object that is the parent of the views. That parent object is the container-area object. Since popup menus do not reside in the container-area they must find the container area object (they ask the main panel object for the container area object id) and redirect the message to the container object.

Sample

DFCreate_Menu Main_Menu
    #include File_PM.inc    // file pulldown menu

    DFCreate_Menu "&View" ViewPopupMenu is a ViewPopupMenu
        On_Item "&Customer Entry View\aCtrl+1" Send Activate_Customer
        On_Item "&Sales Person Entry\aCtrl+2" Send Activate_SalesP_Entry
        On_Item "&Vendor Entry\aCtrl+3" Send Activate_Vendor_Entry
        On_Item "&Inventory Entry\aCtrl+4" Send Activate_Invt_Entry
        On_Item "&Order Entry\aCtrl+5" Send Activate_Order_Entry
    End_Pull_down
    Set Status_Help To "Available Views"

    #include Navi_pm.inc    // Naviation pulldown menu
    #include win_PM.inc     // Window of available views
    #include Help_PM.inc    // help pulldown menu
End_Menu

Syntax

Syntax is identical to its PopupMenu superclass.

Of Special Notice

This class is identical to its superclass PopupMenu with one exception. When an explicit destination object is not provided with the menu item, the message is sent to the client area object and not the focus object (the pulldown). This will be used with view and report view popup menus.