PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • How to proceed?
  • Configuring the timer via the AAF
  • Customizing the setting window of the timer button
  • Disabling the ability to implement a timer button
  • Timer button on the system windows
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
Overview
A window can remain opened indefinitely, waiting for the user to click. In some cases, if the user does not end the current action (modify information about a customer, ...), the corresponding information may be locked for the other users.
The implementation of an 'Automatic validation' button is used to automatically validate (or cancel) an action after a given period of time (between 1 second and 15 minutes).
This feature is also very useful for the confirmation windows.
Reminder: A timer on button can also be automatically included in the application. See Automatic validation for more details.
How to proceed?

Configuring the timer via the AAF

To configure the timer on one of the application buttons:
  1. Select "Automatic validation..." from the popup menu of button (right mouse click on the button).
  2. Select the time required for the automatic validation:
  3. The Timer button will be automatically triggered whenever the window is used.
Versions 17 and later
Note: You have the ability to delete the timer implemented on a button at any time via "Cancel the automatic validation" from the popup menu of button.
New in version 17
Note: You have the ability to delete the timer implemented on a button at any time via "Cancel the automatic validation" from the popup menu of button.
Note: You have the ability to delete the timer implemented on a button at any time via "Cancel the automatic validation" from the popup menu of button.

Customizing the setting window of the timer button

WINDEV allows you to include the configuration window of the time button used by the AAF in your application. You will have the ability to customize:
  • the appearance of this window (modification of skin template for example)
  • the languages supported by this window. This feature is very useful when translating this window into the different languages proposed by the application.
To include the window for configuring the timer in your application:
  1. Select "File .. Import .. WINDEV elements and their dependencies".On the "Project" pane, in the "Project" group, expand "Import" and select "WINDEV elements and their dependencies".
  2. Select the sub-directory containing the elements to import. The configuration window of the timer button is found in the "Programs\Data\Preset windows\AAF" sub-directory of the setup directory of WINDEV.
  3. WINDEV lists the elements found in the directory. This directory contains the different elements corresponding to the customizable AAFs. The window to import is named "WINDEVAaf_TimerWindow.wdw".
  4. Validate. The window is included in the project and it can be modified. This custom window will be automatically taken into account when running the application.
Notes:
  • The window must not be renamed.
  • If this window is included in your application, you may not benefit from the improvements made to this window during the different updates. Don't forget to check whether this window has evolved.
  • Caution: To modify this window, the corresponding file must not be read-only. Modify the characteristics of the file in Windows if necessary.

Disabling the ability to implement a timer button

To prevent the user from implementing a timer button, use DisableAAF associated with the aafAutomaticValidation constant.To prevent the user from implementing a timer button, use AAFDisable (or DisableAAF) associated with the aafAutomaticValidation constant.

Timer button on the system windows

To propose a configurable Timer button on the system windows, we advise you to check "Apply the theme of skin template to the system windows (info, YesNo, Confirm, Dialog)" in the "Style" tab of the project description.
Note: If the text of the system window differs from the text displayed when defining the timer button, the timer will not be proposed.
Minimum required version
  • Version 11
Comments
Click [Add] to post a comment