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 BackgroundImageState property allows you to get and change the number of drawings in the image associated with the background of a Button control.
Remarks:
  • Each drawing in the image corresponds to the state of a button. Drawings must follow the following order: Normal, Pushed, Grayed, Focus and Overview.
  • The number of drawings found in an image is defined in the window editor, in the "General" tab of the control description.
Example
// Modification de l'image associée au cadre du bouton "BTN_Aide"
BTN_Aide.ImageFond ="C:\MesImages\Cadre.gif"
// Initialisation du nombre de dessins présents dans l'image
// associée au cadre du bouton "BTN_Aide"
BTN_Aide.ImageFondEtat = 3
Syntax

Finding out the number of drawings found in the image associated with the border of a Button control Hide the details

<Current number of drawings> = <Button control>.BackgroundImageState
<Current number of drawings>: Integer
Number of drawings found in the image associated with the border of the specified button. This number is between 1 and 5.
<Button control>: Control name
Name of Button control to use.

Modifying the number of drawings found in the image associated with the border of a Button control Hide the details

<Button control>.BackgroundImageState = <New number of drawings>
<Button control>: Control name
Name of Button control to use.
<New number of drawings>: Integer
New number of drawings found in the image associated with the border of the specified button. This number must be between 1 and 5.
Remarks
The BackgroundImageState property applies only to Button controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/27/2024

Send a report | Local help