"editTriggers"

Sets which actions will initiate item editing.

Synopsis

shape.editTrigger(string action);

Parameter

Parameter Description
shape Name of the object
action Sets which action is going to trigger the item editing.

Description

Sets which action should enable the editing of an item.

Note

The function can only be used if the corresponding item can be renamed. This must be enabled by using the function "setRenameEnabled".

EXAMPLE

Items could be edited by double clicks.

main()
{
  TREE1.editTriggers(DoubleClicked);
} 

Assignment

Tree widget