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 FolderModeImage property is used to get and change the display mode of the folder image in TreeView and TreeView Table controls.
Example
TVT_MyTreeViewTable.FolderImageWidth = 50
TVT_MyTreeViewTable.FolderModeImage = imgHWIS
Syntax

Getting the display mode of the folder image Hide the details

<Current mode> = <Control used>.FolderModeImage
<Current mode>: Integer constant
  • Current image display mode:
    imgCenteredCentered: Image centered in the control.
    Centered image
    imgHHomothetic: Image enlarged or reduced (while respecting the proportions of initial image) to occupy the entire surface of control.
    Image stretched to be entirely displayed
    imgHCHomothetic centered: Image enlarged or reduced (while respecting the proportions of initial image) to occupy the entire surface of control and centered in the control.
    Image stretched to be entirely displayed and centered
    imgHCEHomothetic centered extended: Image enlarged or reduced (while respecting the proportions of the initial image) in order for the smaller side of the image to be entirely displayed in the control and in order for the image to be centered in the control.
    imgHCWISHomothetic without enlargement: If the image can be entirely displayed in the control, it is displayed at 100% and centered in the control. Otherwise, the image is proportionally reduced in order to be entirely displayed and centered in the control.
    imgHEHomothetic extended: Image enlarged or reduced (while respecting the proportions of initial image) so that the smaller side of image is entirely displayed in the control.
    imgHQIn homothetic mode, used to improve the quality of image when this one is reduced in relation to its initial size.
    This constant must be combined with the other constants.
    imgHWISHomothetic without enlargement: If the image can be entirely displayed in the control, it is displayed at 100%. Otherwise, the image is proportionally reduced in order to be entirely displayed.
    imgNormal100%: Image displayed at 100% in the upper-left corner of the control.
    Centered image
    imgNoScaleAllows you not to zoom the image in "Large fonts" mode.
    This constant must be combined with one of the constants used to define the display mode of image.
    imgStretchedStretched: Image stretched across the entire surface of the control.
    Stretched image
    imgTiledTiled: Image displayed at 100% and tiled to occupy the entire surface of control (tile).
    Tiled image
<Control used>: Control name
Name of control to use:
  • TreeView control,
  • TreeView Table control.

Modifying the display mode of the image corresponding to the folder Hide the details

<Control used>.FolderModeImage = <New mode>
<Control used>: Control name
Name of control to use:
  • TreeView control,
  • TreeView Table control.
<New mode>: Integer constant
  • New display mode for the image:
    imgCenteredCentered: Image centered in the control.
    Centered image
    imgHHomothetic: Image enlarged or reduced (while respecting the proportions of initial image) to occupy the entire surface of control.
    imgHCHomothetic centered: Image enlarged or reduced (while respecting the proportions of initial image) to occupy the entire surface of control and centered in the control.
    imgHCEHomothetic centered extended: Image enlarged or reduced (while respecting the proportions of the initial image) in order for the smaller side of the image to be entirely displayed in the control and in order for the image to be centered in the control.
    imgHCWISHomothetic without enlargement: If the image can be entirely displayed in the control, it is displayed at 100% and centered in the control. Otherwise, the image is proportionally reduced in order to be entirely displayed and centered in the control.
    imgHEHomothetic extended: Image enlarged or reduced (while respecting the proportions of initial image) so that the smaller side of image is entirely displayed in the control.
    imgHQIn homothetic mode, used to improve the quality of image when this one is reduced in relation to its initial size.
    This constant must be combined with the other constants.
    imgHWISHomothetic without enlargement: If the image can be entirely displayed in the control, it is displayed at 100%. Otherwise, the image is proportionally reduced in order to be entirely displayed.
    imgNormal100%: Image displayed at 100% in the upper-left corner of the control.
    Centered image
    imgNoScaleAllows you not to zoom the image in "Large fonts" mode.
    This constant must be combined with one of the constants used to define the display mode of image.
    imgStretchedStretched: Image stretched across the entire surface of the control.
    Stretched image
    imgTiledTiled: Image displayed at 100% and tiled to occupy the entire surface of control (tile).
    Tiled image
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help