ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Button control
  • Overview
  • Implementation
  • Definition of an automatic execution button
  • Programming
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
To force an action on a window, all you have to do is define a button of this window in "Automatic execution" mode. The principle is very simple, if no button has been used for a given period of time, the process of the "Automatic execution" button will be automatically executed.
At runtime, the duration is automatically decremented. When it reaches zero, the code of the button is automatically run. This mechanism is automatically stopped in the following cases:
  • when the user clicks a button.
  • if the user modifies a control.
  • if the user presses any keyboard key.
Remark: The user can add a timer on button. This is one of the Automatic Application Features (AAF). For more details, see Timer on button.
Implementation

Definition of an automatic execution button

An automatic execution button can be defined:
  • in the window description ("Details" tab):
    Window description
  • in the Button control description ("Details" tab):
    Control description
A message indicates whether several automatic execution buttons have been defined in the window.
Programming
You also have the ability to define an automatic validation button with DelayBeforeClosing.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help