Jump to content

Drop on tree control


Recommended Posts

Hi,

I am trying to customize the behavior of a tree control when a string is dropped into it. The problem is that I need to know if the string was drop on an existing item (to put the new item as a child) or in between 2 items (to put the new item at the same level). I use the "point to row column" method, but it always return an item as parent, never an empty string (the root parent) even when I drop the new string between 2 others. The "in bounds" parameter is always true too.

Any idea?

thanks,

Pierre-Yves

post-18388-0-57374000-1320156654.png

Link to post
Share on other sites

So, here is NI answer:

I looked into your issue more deeply and spoke with one of our LabVIEW experts about the behavior we're seeing with your tree control.

Unfortunately, this appears to be a limitation in LabVIEW that R&D is currently working to resolve. If you're capturing drop events programmatically, there does not seem to be a way for LabVIEW to distinguish between child and sibling drops, even if you enable "Allow Dropping Between Items" on the front panel (which I confirmed in your VI that you had already enabled).

A Corrective Action Request (CAR #285577) has also been filed on this issue, so when it gets fixed it will list this number in the LabVIEW readme if you'd like to track it that way. I'm including a link to where this had been brought up as a Product Suggestion this summer and R&D acknowledged that this was unexpected behavior. I'm truly sorry I don't have better news for you.

In my case I may be able to manage it depending of the item being dropped, but apparently there is no general solution.

Link to post
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...

Important Information

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