Silverfrost Logo About Us | Contact Us
 

Undo operations

SUBROUTINE UNDO_EDIT_CHANGE@(E)
INTEGER E(24) ! EDIT_INFO block

Performs one level of undo operation. A single undo may reverse the effects of several function calls. Direct user interactions with the edit box are tagged so that one user command is reversed at each step (even though it may be implemented in several steps). Other operations should be tagged as required using next_edit_operation@ described next.

SUBROUTINE NEXT_EDIT_OPERATION@(E)
INTEGER E(24) ! EDIT_INFO block

Calling this function indicates to the edit box that future changes are to be considered to belong to a new user operation. Typically you would call this routine at the head of a menu call-back function that was about to change the edit buffer in some way. If you perform a long series of changes without calling this function, they will all be reversed as a block if the user performs an undo operation.

 

 

Copyright © 1999-2017 Silverfrost Limited