Page History
...
The OnContextMenuClick event fires when the user clicks on an item withing within the context menu that was created with a call to the the ShowContextMenu method.
The ItemKey parameter is the unique key you associated with the item when you create it. So, if you created an item with the key "1" whose text was "Copy", then this parameter would be "1".
The UserData parameter contains the data you passed into the UserData parameter of the ShowContextMenu method. It is passed for your convenience.
Example
...
Code Block |
---|
Transfer Param1 to ItemKey Transfer Param2 to UserData Begin Case Case ItemKey EQ "CUT" ; GoSub Cut Case ItemKey EQ "COPY" ; GoSub Copy Case ItemKey EQ "PASTE" ; GoSub Paste Case ItemKey EQ "ZOOMIN" ; GoSub Zoom_In Case ItemKey EQ "ZOOMOUT" ; GoSub Zoom_Out End Case |
...