Default value of Cancel property when "pre" events fire.

Usage

Set_Property(OLECtrlEntID, "OLE.DefCancel", Value)

Values

0, 1 or 2

Default: 0

Remarks

The DefCancel property determines the default value of the Cancel property just before the OnDragStart or BeforeUpdate events fire. This allows you to control default behavior. Usually, it's best to leave this at 0 so operations will be successful by default.

Example

// In some cases, you can have operations fail by default by doing this
Set_Property(@Window:".OLE_TREE", "OLE.DefCancel", 1)

See Also

BeforeUpdateCancel, OnDragStart

  • No labels