Click or drag to resize

MenuCommandEvent Class

X#
Provide information about a MenuCommandEvent, generated when the user executes a menu item, either directly or through the use of accelerator keys.
Inheritance Hierarchy
Object
  Event
    MenuCommandEvent

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 CLASS MenuCommandEvent INHERIT Event
Request Example View Source

The MenuCommandEvent type exposes the following members.

Constructors
  NameDescription
Public methodMenuCommandEvent
Initializes a new instance of the MenuCommandEvent class
Top
Properties
  NameDescription
Public propertyHandle
The pointer to the window where the event occurred
(Inherited from Event.)
Public propertyHyperLabel
The hyperlabel connected to the menu item that generated this MenuCommandEvent.
Public propertyItemID
A numeric value representing the ID of the menu item that generated this MenuCommandEvent.
Public propertyMenu
The Menu object that generated this MenuCommandEvent.
Public propertyMessage
A dword representing the Windows API message associated with the given event.
(Inherited from Event.)
Public propertyName
A string representing the name stored in the hyperlabel of the menu item that generated this MenuCommandEvent.
Public propertyNameSym
A symbol representing the name stored in the hyperlabel of the menu item that generated this MenuCommandEvent.
Public propertyWindow
An object indicating the window or control in which the event occurred. This is helpful, for example, for distinguishing between similar menu events coming from the same context menu attached to different controls.
(Inherited from Event.)
Top
Methods
  NameDescription
Public methodAsString
Return the caption of the selected menu item.
Top
Fields
  NameDescription
Public fieldhWnd (Inherited from Event.)
Public fieldlParam (Inherited from Event.)
Public fieldoWindow (Inherited from Event.)
Public fielduMsg (Inherited from Event.)
Public fieldwParam (Inherited from Event.)
Top
Remarks
MenuCommandEvent events are passed to Window:MenuCommand(), which dispatches the method indicated in the menu item's hyperlabel.
See Also

Reference