Jump to content

Treeview and How to Prevent a Node Change


mos

Recommended Posts

Hi,

  In the Delphi VCL the TTreeView has an OnChanging event handler which allows you to check what the current node is, the node about to be selected and if the change will be allowed.  Is it possible to implement something similar as I need to know what the current node is and then allow or disallow the node change based on some criteria?

Link to comment
Share on other sites

29 minutes ago, mos said:

In the Delphi VCL the TTreeView has an OnChanging event handler which allows you to check what the current node is, the node about to be selected and if the change will be allowed.  Is it possible to implement something similar as I need to know what the current node is and then allow or disallow the node change based on some criteria?

Hi,

What code is in the event?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...