ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Button control
  • Overview
  • Implementation
  • Creating an on/off button
  • Programming
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 state of the button is as follows:
When the user clicks the button a first time, the button remained pressed down:
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 Handling a button through programming). The only difference is: the state of the on/off button is set by the Pushed property.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help