TreeGadget()

Syntax

TreeGadget(#Gadget, x, y, Width, Height [, Flags])

Description

Create a Tree gadget in the current GadgetList. #Gadget will be the numeric identifiant returned by EventGadgetID() command. Once a Tree is created, its list of item is empty. The following commands can be used to act on the list content:

- AddGadgetItem(): Add an item (with an optional picture)
- ClearGadgetItemList(): Remove all the items
- CountGadgetItems(): Returns the number of items currently in the #Gadget
- GetGadgetItemState(): Returns the current state of the specified item.
- SetGadgetItemState(): Changes the current state of the specified item.
- GetGadgetItemText(): Returns the current text of the specified item.
- SetGadgetItemText(): Changes the current text of the specified item.


'Flags' are optionnals and can be composed of one of the following constants:
  #PB_Tree_AlwaysShowSelection : Even if the gadget isn't activated, the selection is still visible. 
  #PB_Tree_NoLines             : Hide the little lines between each nodes. 
  #PB_Tree_NoButtons           : Hide the '+' node buttons. 
  #PB_Tree_CheckBoxes          : Add a checkbox before each item. 

Visual Preview

Supported OS

Windows

Gadget - Index