GetGadgetItemAttribute()
语法
Value = GetGadgetItemAttribute(#Gadget, Item, Attribute [, Column])概要
Gets an attribute value of the specified gadget item.
参数
#Gadget The gadget to use. Item The item from which to get the attribute. The first item in the gadget has index 0. Attribute The attribute to get. Column (optional) The column from which to get the attribute on gadgets that support multiple columns. The first column has index 0. The default is column 0.
返回值
Returns the attribute value or zero if the item or attribute does not exist.
Remarks
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 itemThe 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.
参阅
SetGadgetItemAttribute(), GetGadgetAttribute(), SetGadgetAttribute()
已支持操作系统
所有