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 gets and sets 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: The image stretches or shrinks while maintaining its aspect ratio to fit the control.
    Image stretched to be entirely displayed
    imgHCHomothetic centered: The image stretches or shrinks while maintaining its aspect ratio to be centered and fit 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 full image fits the control, it is displayed at its original size (100%) and centered in the control. Otherwise, it is downsized, while maintaining its aspect ratio to fit and appear centered in the control.
    imgHEHomothetic extended: The image stretches or shrinks while maintaining its aspect ratio so that the smaller side of the image fits 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 full image fits the control, it is displayed at its original size (100%). Otherwise, it is downsized, while maintaining its aspect ratio to fit the control.
    imgNormal100%: The image is displayed at its original size (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: The image stretches to fill the control.
    Stretched image
    imgTiledTiled: The image is repeated while maintaining its original size (100%) to fit the control (tile design).
    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: The image stretches or shrinks while maintaining its aspect ratio to fit the control.
    Image stretched to be entirely displayed
    imgHCHomothetic centered: The image stretches or shrinks while maintaining its aspect ratio to be centered and fit 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 full image fits the control, it is displayed at its original size (100%) and centered in the control. Otherwise, it is downsized, while maintaining its aspect ratio to fit and appear centered in the control.
    imgHEHomothetic extended: The image stretches or shrinks while maintaining its aspect ratio so that the smaller side of the image fits 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 full image fits the control, it is displayed at its original size (100%). Otherwise, it is downsized, while maintaining its aspect ratio to fit the control.
    imgNormal100%: The image is displayed at its original size (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: The image stretches to fill the control.
    Stretched image
    imgTiledTiled: The image is repeated while maintaining its original size (100%) to fit the control (tile design).
    Tiled image
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/04/2024

Send a report | Local help