Name
Treeviewnode.Edit -- prompt user to edit a node label
Synopsis
moai.DoMethod(id, "Edit")
Function
This method can be used to programmatically initiate node label editing. Normally, node label editing is started by the user by slowly double-clicking an item. This method provides an alternative to this user mechanism.

This will only work if Treeview.EditableNodes has been set to True in the treeview.

When the user has finished editing, the Treeview.ValueChange attribute will be triggered.

Note that if you have installed a listener on the Treeview.StartEditing attribute, then this callback will be asked for permission first before editing is actually started.

To learn about editing operations getting cancelled, you can listen to the Treeview.AbortEditing attribute.

Also note that on AmigaOS and compatibles this feature is only available on MUI 4.0 or higher.

Inputs
id
id of the node

Show TOC