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).
Versions 17 and later
Android This property is now available for Android applications.
New in version 17
Android This property is now available for Android applications.
Android This property is now available for 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 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 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 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
// 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
Click [Add] to post a comment