ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Weight property is used to manage the weight of an element in a TreeMap control. It is possible to:
  • Get the weight of an element in a TreeMap control.
  • Change the weight of an element in a TreeMap control.
Remark: Changing an element's weight changes its size in the TreeMap control.. The weight was specified when the element was added to the TreeMap by TreeMapAdd.
Example
// Récupère l'indice de l'élément sélectionné dans le champ TreeMap
IndiceSélection is int = TMAP_TreeMap

// Le libellé affiche le poids de l'élément sélectionné
LIB_TailleFichierNoZippe = TMAP_TreeMap[IndiceSélection].Poids

// Si l'option "Fichier zippé" est cochée, 
// le poids de l'élément du TreeMap correspond à la taille zippée de l'élément 
IF INT_ZIP = True THEN
	TMAP_TreeMap[IndiceSélection].Poids = PoidsZippe(TMAP_TreeMap[IndiceSélection]) 
END
Syntax

Getting 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 you want to get. This parameter has the following format:
<Champ TreeMap>[Indice de l'élément]

Changing 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 changed. This parameter has the following format:
<Champ TreeMap>[Indice de l'élément]
<New weight>: Real or integer
New weight of the specified element.
Minimum version required
  • Version 15
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help