Determines when the Escape key is passed to OpenInsight

Usage

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

Values

[True | False]

Default: False

Remarks

The SingleEscape property is a flag which determines the behavior of the Escape key. When set to zero (which is the default), the Escape key is only passed to OpenInsight if the user is not in edit mode. If the user is in edit mode, then the Escape key only aborts the edit mode. However, if the SingleEscape property is set to 1, then all Escape keys are passed to OpenInsight, even if the user is in edit mode.

The purpose of the property is to control when Escape keys are passed back to OpenInsight so that Cancel buttons can execute their behavior.

Example

 

// Make the user press escape twice to run the CANCEL button 
Set_Property(@Window:".OLE_EDITTABLE", "OLE.SingleEscape", 0) 

// Now, allow the user to run the CANCEL button by pressing escape only once 
Set_Property(@Window:".OLE_EDITTABLE", "OLE.SingleEscape", 1)
  • No labels