Tree Control Drag & Drop in LabVIEW 8
- From: Jim Kring <x@xxxxxxxx>
- Date: Fri, 30 Dec 2005 00:13:23 -0600 (CST)
I've got some concerns with drag and drop events and how
they relate to the tree control. Here is a simple use case: drag and drop
nodes in a tree control. In order to do anything useful beyond the
degenerate case of allowing all nodes to be dragged and dropped on any other
node, I need to know the Source Tag and the Target Tag (to both validate and
process these events, I need to know which item was dragged and dropped onto
which other item). In LabVIEW 7.1 Source Tag and Target Tag are available
as event data. However, in LabVIEW 8.0 the new control drag and drop
events supersede the tree control drag and drop events (the tree drag and drop
events have been depreciated and a warning dialog will be displayed when
opening 7.1 code that calls these events). OK, here is the problem...
there are no longer Source Tag and Target Tag event data in any of the LabVIEW
8.0 tree control drag and drop events. I have found a work-around by writing
a routine that calculates which element the mouse is hovering over, but this is
very non-direct and a bit of a kludge.
Another issue is that the source item disappears from the tree control after
the drop event is processed. This is not the end of the world (I can
recreate the deleted node and child nodes), but it is still a bit of a pain and
I believe that this is a bug.
So, am I off-track? Any thoughts?
.
- Prev by Date: Re: Problems opening program found on the internet
- Next by Date: Re: how to do a VI which allow the program to RUn continuously and will stop to run when i press a button?
- Previous by thread: Re: Real-time low-pass filtering on RT target
- Next by thread: Fatal Error con un ejecutable
- Index(es):