Skip to content

TreeNode disable Label editing #304

Description

@itg-assistant

Alex Prinias asked 2016-10-04 07:33:49 UTC

Hi guys,

I have hooked Insert and Delete keydown on a treenode to Add sub-node on this node and delete the node itself. I can cancel the operation for certain nodes (in effect disable insert and delete for those nodes) in the keydown event.

On the other hand, for editing the node label, there is already  built in the functionality to start editing with a. either F2 or b. two clicks with a short delay between them. And there is the problem. How can I cancel (disable) editing for certain nodes? As soon as they receive F2 or the two delayed clicks they go into editing mode.

Best,
Alex

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions