PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
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
..Pushed is used to find out and modify the status of an on/off button (pressed or not).
Versions 17 and later
Android This property is now available for the Android applications.
New in version 17
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
iPhone/iPad This property is now available for the iPhone/iPad applications.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Universal Windows 10 App This property is now available in Windows Store apps mode.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Presses the BTN_Button1 button
BTN_Button1..Pushed = True

// Resize the window
IF BTN_Detail..Pushed = True THEN
WIN_Windows1..Height = 400
ELSE
WIN_Windows1..Height = 200
END
Syntax

Finding out the status of an on/off button Hide the details

<Result> = <Button name>..Pushed
<Result>: Boolean
  • True if the button is pressed,
  • False otherwise.
<Button name>: Character string (with or without quotes)
Name of the On/Off Button control ("On/Off button" checked in the "GUI" tab of the control description).

Modifying the status of an on/off button Hide the details

<Button name>..Pushed = <New status>
<Button name>: Character string (with or without quotes)
Name of the On/Off Button control ("On/Off button" checked in the "GUI" tab of the control description).
<New status>: Boolean
  • True if the button must be pressed,
  • False if the button must be in its normal status.
Minimum required version
  • Version 9
This page is also available for…
Comments
Video Pushed
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
Mar. 12 2019
BOTAO ON - OFF COMO FAZER
IF BTN_botao_on_off..Pushed=1 THEN
BTN_botao_on_off..Caption="DESLIGAR"
BTN_botao_on_off..Color=DarkRed
ELSE
BTN_botao_on_off..Caption="LIGAR"
BTN_botao_on_off..Color=DarkBlue
END

// BLOG COM VIDEO E EXEMPLO

http://windevdesenvolvimento.blogspot.com.br/2017/11/aula-1290-dicas-46-pushed-on-off.html

https://www.youtube.com/watch?v=YeTEk3Rz2-w

De matos
Nov. 21 2017