Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 converted into menu separators. That's it. The user will now get your context menu when he/she clicks the button, and the OnContextMenu event will fire when an item is selected.

...

Code Block
// Add context menu to the button 
Menu = "Paste Normal":@FM:"":@FM:"Paste Text Only":@FM:"Paste Table":@FM:"Paste Formatted Code" 
Set_Property(@Window:".OLE_BUTTON", "OLE.ContextMenu", Menu)

See Also

OnContextMenu