ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The property ButtonType property lets you know and modify the type of a Button control: Cancel, Interrupt, Validate, etc.
Note: This property corresponds to the "Type" option available in the "UI" tab of the Button control description window.
Example
B1 is Control
B1 <- ControlCreate("B1", typButton, 100, 50, 32, 32)
B1.TypeBouton = btnInterruption
Syntax

Getting the type of a button Hide the details

<Result> = <Button control>.ButtonType
<Result>: Integer constant
Type of button:
btnCancelCancel button.
btnHelpHelp button.
btnInterruptionInterruption button.
btnNormalNormal button.
btnValidateValidation button.
<Button control>: Control name
Name of Button control to use.

Changing the type of a button Hide the details

<Button control>.ButtonType = <New type>
<Button control>: Control name
Name of Button control to use.
<New type>: Integer constant
Type of button:
btnCancelCancel button.
btnHelpHelp button.
btnInterruptionInterruption button.
btnNormalNormal button.
btnValidateValidation button.
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help