![]() Using the Undo Service |
![]() DEVELOPER |
![]() |
Every action within the PROIV Forms Designer is logged by form within each function (easel). Actions include changes to any existing control on a form, additions to and deletions from forms via drag and drop, cut and paste (within and across functions) as well as modifications to property sheets.
This means that every action performed by a developer may be undone up to a limit of 50 actions. Once the circular queue of actions exceeds 50 items, the oldest undo slot is reused. In this situation, the oldest actions may not be undone and the function edit session would have to be cancelled (not saved) and retrieved in order to revert the function to its original state.
After an operation is logged against a form, the form’s tab displays the keyword (‘modified’) the form’s title bar displays the keyword ‘(modified)’ and the function’s easel title bar also displays the same keyword. This makes it easy to determine whether a function has been changed as well as which form(s) changed within a given session.
The undo service is keyed by form so that a series of undo clicks will only undo operations logged against the current form. When the set of undo operations goes to zero, the undo on the toolbar is disabled and the current form title bar no longer displays ‘(modified)’. When there are no changes for any form contained by a function, the easel title bar itself no longer displays the ‘(modified)’ keyword and the undo is disabled.
The Undo operation is executed by clicking on the undo toolbar or selecting the ‘edit, undo’ menu item or via the shortcut key, CTRL+Z.
Topic ID: 530043