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 ImageState property is used to get and change the number of drawings in:
  • The image associated with a button.
  • The image of the cursor in a slider.
  • The image associated with the button of a sidebar pane.
  • The image associated with the button of a tab pane.
  • The image associated with the Rating control.
  • The image associated with a group in a Ribbon control.
  • WINDEV The image associated with a menu option.
In Radio Buttons and Check Boxes, the ImageState property is used to get the number of animation steps.
For the images in a format other than the animated GIF, the animation is defined via a drawing board. The animation steps correspond to the number of drawing lines in the image set.
Remark: Each image drawing corresponds to a state:
  • For Button controls, sidebar pane, tab pane, menu option, etc.: the drawings must follow a specific order: Normal, Pressed, Grayed, Focus and Rollover.
  • For Slider controls: the drawings must follow this order: Normal and Pressed.
WEBDEV - Server codePHP This property is only available for managing the images found in the Rating controls.
Example
// Modify the image associated with the "BTN_Help" button
BTN_Help.Image = "C:\MyImages\Help.gif"
// Initialize the number of drawings in the image associated with "BTN_Help"
BTN_Help.ImageState = 3
Syntax

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

<Current number of drawings> = <Control used>.ImageState
<Current number of drawings>: Integer
Number of drawings found in:
  • The image associated with the button. This number is between 1 and 5.
  • The image of the cursor in a slider. This number is between 1 and 2.
  • The image associated with the button of a sidebar pane. This number is between 1 and 5.
  • The image associated with the button of a tab pane. This number is between 1 and 5.
  • The image associated with the Rating control. This number is between 1 and 5.
  • The image associated with a group in a Ribbon control. This number is between 1 and 5.
  • WINDEV The image associated with a menu option. This number is between 1 and 5.
For the Check Box and Radio Button controls, number of animation steps.
<Control used>: Control name
Name of the control to be used.

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

<Control used>.ImageState = <Number of Drawings>
<Control used>: Control name
Name of the control to be used.
<Number of Drawings>: Integer
New number of drawings found in:
  • The image associated with the button. This number must be between 1 and 5.
  • The image of the cursor in a slider. This number must be between 1 and 2.
  • The image associated with the button of a sidebar pane. This number must be between 1 and 5.
  • The image associated with the button of a tab pane. This number is between 1 and 5.
  • The image associated with the Rating control. This number must be between 1 and 5.
  • The image associated with a group in a Ribbon control. This number must be between 1 and 5.
  • WINDEV The image associated with a menu option. This number must be between 1 and 5.
For the Check Box and Radio Button controls, new number of animation steps.
Remarks
The ImageState property applies only to:
  • buttons,
  • sliders,
  • sidebar panes,
  • tab panes,
  • check boxes and radio buttons,
  • Rating controls.
  • groups in a Ribbon control.
  • WINDEV menu options.
Java The ImageState property applies only to buttons.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/05/2022

Send a report | Local help