AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
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 Weight property is used to manage the weight of an element in a TreeMap control. You can:
  • Get the weight of an element in a TreeMap control.
  • Change 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 index of the element selected in the TreeMap control
SelectionIndex is int = TMAP_TreeMap
 
// The static displays the weight of the selected element
STC_SizeUnzippedFile = 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 = ZippedWeight(TMAP_TreeMap[SelectionIndex])
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 is requested. This parameter has the following format:
<TreeMap control>[Element index]

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:
<TreeMap control>[Element index]
<New weight>: Real or integer
New weight of the specified element.
Versión mínima requerida
  • Versión 15
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local