PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
Versions 18 and later
Universal Windows 10 App The On/Off buttons are available in Windows Store apps mode.
New in version 18
Universal Windows 10 App The On/Off buttons are available in Windows Store apps mode.
Universal Windows 10 App The On/Off buttons are available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App The On/off buttons are available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App The On/off buttons are available in Universal Windows 10 App mode.
Universal Windows 10 App The On/off buttons are available in Universal Windows 10 App mode.
Implementation

Creating an on/off button

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

Programming

The method for programming an on/off button is the same as the method for programming the other types of buttons (see Handling a button by programming). The only difference is: the status of the on/off button is managed by ..Pushed.
Minimum version required
  • Version 9
This page is also available for…
Comments
Video Button On Off
https://youtu.be/f-OQCl26QU0

https://windevdesenvolvimento.blogspot.com/2019/03/dicas-2042-windev-comandos-46-pushed.html

// BTN LIGA DESLIGA
BTN_LIGA_DESLIGA=(BTN_LIGA_DESLIGA..Pushed?"LIGA" ELSE "DESLIGA")
IF BTN_LIGA_DESLIGA..Pushed=True THEN
Info("COMANDOS SE FOR VERDADEIRO")
ELSE
Info("COMANDOS SE FOR FALSO")
END
amarildo
12 Mar. 2019