PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The Property Weight allows to manage the weight of an element of an TreeMap control. You can:
  • Find out the weight of an element in a TreeMap control.
  • Modify the weight of an element in a TreeMap control.
Remark: Modifying the weight of the element also modifies the size of this element in the TreeMap control. The weight was specified when the element was added to the TreeMap by TreeMapAdd.
Example
// Retrieves the subscript of the element selected in the TreeMap control
SelectionSubscript is int = TMAP_TreeMap
 
// The static displays the weight of the selected element
LIB_SizeFileNoZippe = TMAP_TreeMap [SelectionIndex].Weight
 
// If "Zipped file" is checked,
// the weight of the TreeMap element corresponds to the zipped size of the element
IF CBOX_ZIP = True THEN
TMAP_TreeMap[SelectionIndex].Weight = WeightZip(TMAP_TreeMap[SelectionIndex])
END
Syntax

Find out the weight of an element in a TreeMap control Hide the details

<Result> = <Element of TreeMap Control>.Weight
<Result>: Real or integer
Current weight of the element in the specified TreeMap control.
<Element of TreeMap Control>: Control name
Element of the TreeMap control whose weight is requested. This parameter has the following format:
<Name of TreeMap Control>[Element Subscript]

Modifying the weight of an element in a TreeMap control Hide the details

<Element of TreeMap Control>.Weight = <New Weight>
<Element of TreeMap Control>: Control name
Element of the TreeMap control whose weight must be modified. This parameter has the following format:
<Name of TreeMap Control>[Element Subscript]
<New Weight>: Real or integer
New weight of the specified element.
Minimum version required
  • Version 15
Comments
Click [Add] to post a comment