|
|
|
|
|
- Overview
- How to?
- 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
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, etc.), the corresponding information may be locked for the other users. 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: Button timer can also be included as standard in the application. For more details, see Automatic validation. Configuring the timer via the AAF To configure the timer on one of the application buttons: - Right-click the button the open the context menu and select "Automatic validation...".
- Select the time for the automatic validation:
- The Timer button will be automatically triggered whenever the window is used.
Note At any time, you can delete the timer set on a button by clicking on "Cancel automation" in the button's context menu (right-click). 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 available in the application.
To include the window for configuring the timer in your application: - On the "Project" tab, in the "Project" group, expand "Import" and select "WINDEV elements and their dependencies".
- Select the subdirectory that contains the elements to import. The timer button configuration window is located in the "Programs\Data\Preset Windows\EN\ AAF " subdirectory of the WINDEV installation directory.
- WINDEV lists the elements of the directory. This directory contains the different elements corresponding to the customizable AAFs. The window to import is named "WINDEVAaf_TimerWindow.wdw".
- 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.
Remarks: - 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.
- Warning: 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 AAFDisable associated with the aafAutomaticValidation constant. Timer button on the system windows To propose a configurable Timer button on the system windows, it is recommended to check "Customize system windows (Info, YesNo, Confirm, Dialog)" in the "Style" tab of the project description. Remark: If the text in the system window is different from the one displayed when defining the timer button, the timer will not be proposed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|