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
  • Creating an on/off button
  • Programming
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
On/Off button in a window
Overview
The on/off button is a button that operates like a check box.
If the normal status of the button is as follows:
The first time the user clicks the button, the button remained pressed:
The second time the user clicks the button, the button goes back to its normal status.
Implementation

Creating an on/off button

To create an on/off button:
  1. Create a button.
  2. Go to the "UI" tab of the button description window and select "On/Off button".
  3. Validate the description window.

Programming

Programming an on/off button is identical to programming other types of buttons (see Manipulating a button by programming). The only difference is that push-button status is managed by the Pushed property.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help