Click or drag to resize

MenuInitEvent Class (Typed)

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

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 CLASS MenuInitEvent INHERIT MenuEvent
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 (Inherited from Event.)
Public propertyhWnd (Inherited from Event.)
Public propertyHyperLabel (Inherited from MenuEvent.)
Public propertyItemID (Inherited from MenuEvent.)
Public propertylParam (Inherited from Event.)
Public propertyMenu
The Menu object that generated this MenuSelectEvent.
(Inherited from MenuEvent.)
Public propertyMessage (Inherited from Event.)
Public propertyName
A string representing the name stored in the hyperlabel of the menu items that generated this MenuSelectEvent.
(Inherited from MenuEvent.)
Public propertyNameSym (Inherited from MenuEvent.)
Public propertyoWindow (Inherited from Event.)
Public propertyuMsg (Inherited from Event.)
Public propertyWindow (Inherited from Event.)
Public propertywParam (Inherited from Event.)
Top
Functions
  NameDescription
Public methodAsString (Inherited from MenuEvent.)
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