Click or drag to resize

MenuInitEvent Class

X#
Provide information about a MenuInitEvent, generated when the user first activates a menu for the first time.
Inheritance Hierarchy
Object
  Event
    MenuInitEvent

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

The MenuInitEvent type exposes the following members.

Constructors
  NameDescription
Public methodMenuInitEvent
Initializes a new instance of the MenuInitEvent class
Top
Properties
  NameDescription
Public propertyHandle
The pointer to the window where the event occurred
(Inherited from Event.)
Public propertyMenu
The Menu object that generated this MenuInitEvent (and is about to be displayed for initialization).
Public propertyMessage
A dword representing the Windows API message associated with the given event.
(Inherited from Event.)
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
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
The system generates MenuInitEvent objects before displaying a pull-down menu, allowing the application to initialize items before they are displayed. For example, you can want to dim items that the program is not yet in a position to handle, or you may want to check or uncheck certain items. MenuInitEvent events are passed to Window:MenuInit(). If you change the menu using the Menu access, you do not need to call the window's Menu assign. When the menu is displayed, it is the modified version. Accelerator keys generate MenuInitEvent events if the accelerator invokes a submenu.
See Also

Reference