GetGadgetItemAttribute()

Syntax

Value = GetGadgetItemAttribute(#Gadget, Item, Attribute [, Column])
Description
Gets the 'Attribute' value of the specified #Gadget item. This function is available for all gadgets which support item attributes:

- ExplorerListGadget():
  #PB_Explorer_ColumnWidth : Returns the width of the given 'Column'. The 'Item' parameter is ignored.
- ListIconGadget():
  #PB_ListIcon_ColumnWidth : Returns the width of the given 'Column'. The 'Item' parameter is ignored.
- TreeGadget():
  #PB_Tree_SubLevel : Returns the sublevel of the given item
The sublevel value of the tree item can be used to determine relations between items in the tree. For example the first item with a sublevel smaller than the current item, if the list is checked backwards, is the parent of the current item.

Supported OS

All

<- GetGadgetFont() - Gadget Index - GetGadgetItemColor() ->