ContextMenu Property
The button's custom context menu.
Definition
Property "OLE.ContextMenu" as List
Values
This property is an @FM delimited list of menu captions.
Remarks
The ContextMenu property creates a custom context menu that appears whenever the button is clicked. This causes the button to behave as though it were a button with options.
To use it, pass a field mark delimited list of menu items. The text in each field is exactly the text for each item is the user will see it. Empty fields are interpreted as menu separators. The user will get your context menu when he/she clicks the button, and the OnContextMenu event will fire when an item is selected.
Example
Menu = ""
Menu<-1> = "Paste Normal"
Menu<-1> = "" ; // seperator
Menu<-1> = "Paste Text Only"
Menu<-1> = "Paste Table"
Menu<-1> = "Paste Formatted Code"
Set_Property(@Window:".OLE_BUTTON", "OLE.ContextMenu", Menu)