"setRenameEnabled"

The attribute "setRenameEnabled" specifies if an item can be in-place renamed in the column.

Synopsis

shape.setRenameEnabled(stringId,intcolumn,boolenabled);

Parameters

Parameter Description
shape Name of the object
ID Element ID
column The column
enabled

TRUE = the element can be in-place renamed.

FALSE = the element cannot be in-place renamed.

Description

The attribute "setRenameEnabled" specifies if an item can be in-place renamed in the column.

Example

In the following example "setRenameEnabled" is set to TRUE for the element "WHOLE_NAME" in the column 1. The element can be renamed using the attribute "startRename".

main()
{
  TREE1.setRenameEnabled("WHOLE_NAME",1,TRUE);
  TREE1.startRename("WHOLE_NAME",1);
}

Assignment

Tree widget