PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
..Weight is used to manage the weight of an element found in a 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.
Note: 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
STC_SizeUnzippedFile = TMAP_TreeMap[SelectionSubscript]..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[SelectionSubscript]..Weight = ZippedWeight(TMAP_TreeMap[SelectionSubscript])
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>: Character string (without quotes)
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>: Character string (without quotes)
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