|
|
|
|
- Use conditions
- Use example
<Window>.EdUndo (Function) In french: <Fenêtre>.EdUndo Undoes the last action performed by the end user when modifying the interface ("Allow end users to modify the UI" option enabled). This function is equivalent to an "Undo" (Ctrl + Z) performed by the user. This function is mainly used when creating an editor through programming (see "Remarks"). // [Cancel] button WIN_Form.EdUndo() Syntax <Window>: Window name Name of the window or internal window to be used. This window must be in edit mode (<Window>.EdActive). Remarks Use conditions - <Window>.EdUndo has no effect if there is no action to cancel.
- If the last action is a custom action run by <Window>.EdDo, the procedure defined by WinEdDeclareUndo is run.
- The canceled action can be restored:
Use example <Window>.EdDo is used to create custom actions (control creation for example) that support the undo/redo feature. Let's take a simple example: creating a graphic object editor. A button is used to create a shape. The user must have the ability to undo the shape creation. The following operations are performed: The end user can undo this action (Ctrl + Z or call to <Window>.EdUndo) and eventually redo it (Ctrl + Y or call to <Window>.EdRedo).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|