 "setToolTip"
"setToolTip"
    
    Specifies the tooltip text for the selective item in a column of a tree widget.
Synopsis
shape.setToolTip(string id, int column, string text);
Parameters
| Parameter | Description | 
|---|---|
| shape | Name of the object | 
| id | ID (unique name) of the item | 
| column | ID of the column | 
| text | The tooltip text to be shown. | 
Description
Specifies the tooltip text for the selective item in a column of a tree widget.
 Example
Example
Shows the tooltip texts for the items of the first column (e.g. here the personnel number, see figure below).
main()
{
  //Add three columns
  TREE1.addColumn("Surname");
  TREE1.addColumn("First name");
  TREE1.addColumn("Address");
  //Append the item "Data"
  TREE1.appendItemNC("","DATA_","Data");
  //Append three subitems
  TREE1.appendItemNC("DATA_","SMITH","Smith");
  TREE1.setToolTip("SMITH", 0, "Personnel number: 12345");
  TREE1.appendItemNC("DATA_","DOE","Doe");
  TREE1.setToolTip("DOE", 0, "Personnel number: 23456");
  TREE1.appendItemNC("DATA_","NEWMAN","Newman");
  TREE1.setToolTip("NEWMAN", 0, "Personnel number: 34567");
  //Set texts in the column "First name"
  TREE1.setText("SMITH",1,"Maria");
  TREE1.setText("DOE",1,"Anna");
  TREE1.setText("NEWMAN",1,"Jack");
  //Set texts in the column "Address"
  TREE1.setText("SMITH", 2, "Main Street 1");
  TREE1.setText("DOE", 2, "Vienna Street 10");
  TREE1.setText("NEWMAN", 2, "Einstein Street 100");
} 
            Assignment
Tree widget
