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 ImageState property gets and sets 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 drawing in an image corresponds to a state:
  • For Button controls, sidebar pane, tab pane, menu option, etc. Drawings must follow the following order: Normal, Pushed, Grayed, Focus and Overview.
  • For the Slider control fields: drawings must follow this order: Normal and Pushed.
WEBDEV - Server codePHP This property is only available for managing the images found in the Rating controls.
Example
// Modification de l'image associée au bouton "BTN_Aide"
BTN_Aide.Image = "C:\MesImages\Aide.gif"
// Initialisation du nombre de dessins dans l'image associée au bouton "BTN_Aide"
BTN_Aide.ImageEtat = 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: 09/30/2024

Send a report | Local help