MenuSelectEvent Class |
|
Namespace: VO
The MenuSelectEvent type exposes the following members.
| Name | Description | |
|---|---|---|
| MenuSelectEvent | Initializes a new instance of the MenuSelectEvent class |
| Name | Description | |
|---|---|---|
| HyperLabel |
The hyperlabel connected to the menu that generated this MenuSelectEvent. From the hyperlabel, you can retrieve additional information about the menu.
| |
| ItemID |
A numeric value representing the ID of the menu item that generated this MenuSelectEvent.
| |
| Menu |
The Menu object that generated this MenuSelectEvent.
| |
| Name |
A string representing the name stored in the hyperlabel of the menu items that generated this MenuSelectEvent.
| |
| NameSym |
A symbol representing the name stored in the hyperlabel of the menu items that generated this MenuSelectEvent.
|
| 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