06-12-2008 07:45 AM
Tushar Jambhekar
tushar@jambhekar.com
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog
06-12-2008 09:33 AM
06-13-2008 01:41 AM
Thanks for your help. I tried your solution but I have one more problem. The array of string returns the strings displayed for dragged row, but I don’t get the tag for that row. E.g. if I am having two items with strings as "item" but if their tags are item_1 and item_2, how can I come to know which item is getting dragged? Does this mean I have to use point to row column function when I start dragging?
If this is the case then whole thing will be futile
What I basically want to achieve is this
I have I hierarchy of items listed in tree. User should be able to drag/drop items without changing their indent level.
Now in built drag drop allows to change the hierarchy
To add up my own conditions if I register Drop event then I have to write the code for modifying the tree data myself and I think its not a big issue.
But if I register the “drag starting?” event; then I loose the guide line which shows where the item will get dropped.
Is there any workaround for this?
Tushar Jambhekar
tushar@jambhekar.com
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog
06-13-2008 02:03 AM
Tushar Jambhekar
tushar@jambhekar.com
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog
06-16-2008 05:18 PM
Hi Tushar,
I know of no way to directly detect if an item was dropped on top of another item versus it being dropped in between two items. There is a potential work around. You could potentially check the item before and/or after the drop to detect where it may have been dropped.
Kevin S.
Applications Engineer
National Instruments