Undoes the user's last operation.

Usage

Send_Message(OLECtrlEntID, "OLE.Undo")

Parameters

None

Remarks

The Undo method performs a standard undo. Normally, you won't have to call this since the Ctrl+Z shortcut is already built into the SRP Sketch Control. However, if you have a frame with a menu item using Ctrl+Z, then that menu will override the ability for the SRP Sketch Control to do this automatically. In that case, have your menu accelerator call this method when the SRP Sketch Control has focus.

Example

// programmatically perform a undo
Send_Message(@Window:".OLE_SKETCH", "OLE.Undo")

See Also

CopyCutPasteRedoSelectAll

  • No labels