Sets whether or not cells in edit mode show their default context menus during a right click or fire the OnClick event.

Version Introduced: 3.0.1
 

Usage

Set_Property(OLECtrlEntID, "OLE.EditContextMenu", Boolean)

Values

[True | False]

Default: True

Remarks

The EditContextMenu property can be used to modify the behavior of the right click action for cell's in edit mode. By default, right clicking in a cell in edit mode will show the standard edit line context menu (Cut, Copy, Paste, etc.). By setting this property to FALSE, right clicking will fire the OnClick event for the edit table rather than showing the context menu.

Example

// Show the context menu 
Set_Property(@Window:".OLE_EDITTABLE", "OLE.EditContextMenu", 1) 

// Fire the OnClick event instead 
Set_Property(@Window:".OLE_EDITTABLE", "OLE.EditContextMenu", 0)
  • No labels