Jump to content

Disabled one element in a tree view


CTR

Recommended Posts

Posted

I am trying to program a tree view with 2 columns. The second column I would like to be able to edit some of the line but not all of them.

Does anyone know how to disable only one element in a tree view and still be able to select this line. When I use the Disabled? Property node, If I select this line the tree value is empty. Is it possible to know that I have slected that line?

Thanks for your help!

Posted

Does anyone know how to disable only one element in a tree view and still be able to select this line.

Hi,

You can catch the mouse-down event on the Tree control, and discard this event if a disabled element (row + column) was clicked.

/J

Posted

Hi,

You can catch the mouse-down event on the Tree control, and discard this event if a disabled element (row + column) was clicked.

/J

Even better is the 'Edit Cell?' event. You can discard the actual editing before the characters are shown.

To be fancy I would sound a 'beep.vi'.

Ton

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...

Important Information

By using this site, you agree to our Terms of Use.