"hideColumn"

Hides a column of a tree widget.

Synopsis

shape.hideColumn(int Idx, bool check);

Parameters

Parameter Description
shape Object name.
Idx Column index. Can be also entered in string format, e.g. this.hideColumn("2");. The specification of the column name is not supported.
check

TRUE = Column is hidden.

FALSE = Column isn't hidden.

Description

Hides a column of a tree widget. This is a convenience function that calls setColumnWidth(column, 0).

Example

The following example hides the column with the number 0 ("NAME"). If hideColumn(0, false) is executed later, the column could be shown again.

If you hide a column and then set a text into the column, the text is not shown since the column is hidden.

main()
{
  TREE1.addColumn("NAME");
  TREE1.addColumn("SURNAME");
  TREE1.hideColumn(0, true);
}

Assignment

Tree widget