|
SmartMenuXP
Reference
Returns a string that uniquely identifies a menu item.
Syntax
object.Key(menuID)
The Key property syntax has these parts:
| Part |
Description |
| object |
An object expression that evaluates to a SmartMenuList object. |
| menuID |
A numeric expression that evaluates to a menu item. |
Remarks
Menu items can have an empty string as its key. The key is assigned when the
menu item is created.
Private Sub
SmartMenuXP1_Click(ByVal ID As Long)
With SmartMenuXP1.MenuItems
Select Case .Key(ID)
Case
"keyOpen"
'
- Open a file...
Case
"keySave"
'
- Save a file...
Case
"keyExit"
'
- Exit the application...
End
Select
End With
End Sub
|