PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
The Pushed property is used to get and change the state of a two-state button (pressed or released).
Example
// Press BTN_Button1
BTN_Button1.Pushed = True
 
// Modify window size
IF BTN_Detail.Pushed = True THEN
WIN_Window1.Height = 400
ELSE
WIN_Window1.Width = 200
END
Syntax

Getting the state of an on/off Button control Hide the details

<Result> = <Button control>.Pushed
<Result>: Boolean
  • True if the Button control is pressed,
  • False otherwise.
<Button control>: Control name
Name of the on/off Button control ("On/Off button" checked in the "UI" tab of the control description).

Modifying the state of an on/off Button control Hide the details

<Button control>.Pushed = <New state>
<Button control>: Control name
Name of the on/off Button control ("On/Off button" checked in the "UI" tab of the control description).
<New state>: Boolean
  • True if the Button control must be pressed,
  • False if the Button control must be in its normal state.
Minimum version required
  • 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
12 Mar. 2019