ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help