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 FolderImageWidth property is used to get and change the folder image width in TreeView and TreeView Table controls.
This property corresponds to the option:
  • "Width of folder image" in the "Details" tab of the TreeView control description window.
  • "Width" of the "Image of folders" section found in the "Details" tab of the description window of TreeView Table controls.
Example
// Delete the display of folders
TREE_MyTreeView.FolderImageWidth = 0
 
// Restore the display of folders
TREE_MyTreeView.FolderImageWidth = -1 // Default value
Syntax

Finding out the width of the image corresponding to the folder Hide the details

<Current width> = <Control used>.FolderImageWidth
<Current width>: Integer
  • Current width of the image displayed (expressed in pixels),
  • 0 if the image is not displayed,
  • -1 if the image is displayed with its initial width.
<Control used>: Control name
Name of control to use:
  • WINDEV TreeView control,
  • TreeView Table control.

Modifying the width of the image corresponding to the folder Hide the details

<Control used>.FolderImageWidth = <New width>
<Control used>: Control name
Name of control to use:
  • WINDEV TreeView control,
  • TreeView Table control.
<New width>: Integer
New width for the image displayed (expressed in pixels)
If this parameter is set to:
  • 0 if the image is not displayed,
  • -1 if the image is displayed with its initial width.
Remarks
To modify the width of the image displayed for a specific row in a TreeView or TreeView Table control, use the following syntax:
<Control_Name>[Row_Number].FolderImageWidth = Value
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