MenuSelectEvent Class (Typed) |
Namespace: XSharp.VO.SDK
The MenuSelectEvent type exposes the following members.
Name | Description | |
---|---|---|
MenuSelectEvent | Initializes a new instance of the MenuSelectEvent class |
Name | Description | |
---|---|---|
Handle | (Inherited from Event.) | |
hWnd | (Inherited from Event.) | |
HyperLabel | (Inherited from MenuEvent.) | |
ItemID | (Inherited from MenuEvent.) | |
lParam | (Inherited from Event.) | |
Menu |
The Menu object that generated this MenuSelectEvent.
(Inherited from MenuEvent.) | |
Message | (Inherited from Event.) | |
Name |
A string representing the name stored in the hyperlabel of the menu items that generated this MenuSelectEvent.
(Inherited from MenuEvent.) | |
NameSym | (Inherited from MenuEvent.) | |
oWindow | (Inherited from Event.) | |
uMsg | (Inherited from Event.) | |
Window | (Inherited from Event.) | |
wParam | (Inherited from Event.) |
Tip |
---|
When a menu item is actually selected (and therefore executed), the system generates a MenuCommandEvent. |
1CLASS MyWindow INHERIT TopAppWindow 2METHOD MenuSelect(oMSE) CLASS MyWindow 3LOCAL j := oMSE:ItemID 4DO CASE 5CASE j = IDMI_RED 6TextPrint("Select the Red Pen", Point{10,10}) 7CASE j = IDMI_GREEN 8TextPrint("Select the Green Pen", Point{10,10}) 9CASE j = IDMI_BLUE 10TextPrint("Select the Blue Pen", Point{10,10}) 11ENDCASE