PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use conditions
  • Use example
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Runs the last action canceled by the end user when modifying the interface (Mode "Modification of GUI by the end user" enabled). This function is equivalent to a "Redo" (Ctrl + Y) performed by the user.
This function is mainly used when creating an editor by programming (see the "Remarks").
Example
// [Restore] button
WinEdRedo(WIN_Form)
Syntax
WinEdRedo(<Window>)
<Window>: Window name
Name of window or internal window to use. This window must be in modification mode (WinEdActive).
Remarks

Use conditions

  • WinEdRedo has no effect if no action was canceled.
  • If the last action is a custom action run by WinEdDo, the procedure declared in this function is run.
  • The restored action can be canceled again by pressing Ctrl + Z or by programming with WinEdUndo.

Use example

WinEdDo is used to create custom actions (control creation for example) that support the undo/redo.
Let's take a simple example: creating an editor of graphic objects. A button is used to create a shape. The user must have the ability to cancel the shape creation. The following operations are performed:
  • Switching the window to modification mode (WinEdActive).
  • Call to WinEdDo. The procedure called by this function is used to create the shape. This procedure also contains the call to WinEdDeclareUndo. WinEdDeclareUndo is used to define the behavior in case of user cancelation.
  • Switching the window to normal mode (WinEdActive).
The end user can cancel this action (Ctrl + Z or call to WinEdUndo) and eventually redo it (Ctrl + Y or call to WinEdRedo).
Related Examples:
WD Interactive Application Training (WINDEV): WD Interactive Application
[ + ] This example explains how to use the WinEdXXX functions in an interactive application.
This application is used to mange a connected house (switch the lights on, find out the temperature).

The WinEdXXX functions are used to move the controls on the house map, while proposing advanced features such as the backup of modifications, the cancelation, ...
Component : wd250obj.dll
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment