PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..BackgroundImageState is used to find out and modify the number of drawings found in the image associated with the border of a Button control.
Notes:
  • Each image drawing corresponds to a button status. The drawings must follow a specific order: Normal, Pressed, Grayed, Focus and Rollover.
  • The number of drawings found in an image is defined in the window editor, in the "General" tab of the control description.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
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
// Modify the image associated with the border of the "BTN_Help" button
BTN_Help..BackgroundImage = "C:\MyImages\Border.gif"
// Initialize the number of drawings found in the image
// associated with the border of the "BTN_Help" button
BTN_Help..BackgroundImageState = 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 name>..BackgroundImageState
<Current Number of Drawings>: Integer
Number of drawings found in the image associated with the border of the specified button. This number is included between 1 and 5.
<Button name>: Character string (with or without quotes)
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 name>..BackgroundImageState = <New Number of Drawings>
<Button name>: Character string (with or without quotes)
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 included between 1 and 5.
Remarks
..BackgroundImageState applies to the Button controls only.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment