01-24-2013 06:32 AM
Hi,
I am busy with the multicolumn headbox, what a pain!!
1. I want to edit the row header while clicking on it with the "Point To Row Column" as shown in the VI attached, but this seems a known error in labview, and isn't solved yet...
2. I want to drag and drop item in the same multicolumn listbox, but when i do this, the row header turns blank? Anyone knows how to solve one or both the problems...?
Best regards,
Thijs
Solved! Go to Solution.
01-24-2013 07:14 AM
For the second problem, you can probably add some code to resolve the issue but that will be quite annoying to do I think because you'll have to keep in memory the row hearder array and re-apply it correctly after the drop.
And at the same time you can call your local NI support and ask them to file a CAR for that and pray for it to be fixed in the next LabVIEW version.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-24-2013 07:19 AM
I am trying to use the drag and drop events... But it doesn't get me very far...
Regards,
Thijs
01-24-2013 07:48 AM
Here's one way to do it. I have to say it's the first time I use drag & drop so there's probably a better way to do it.
Basically I started from the example that ships with LabVIEW, the difference is that on the drop even I refuse (link false to accept terminal) the drop because I move the data + header myself.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-24-2013 08:01 AM
I almost works, if drag to much to the edge of the column header, the row vanishes... I am also going to make it so that when i drop the data, the highlighted row is the one where it droppes.
Regards,
Thijs
01-24-2013 08:03 AM
In this case, in the drop event you can put the code that moves the line into a case structure and do noting if the row is = -1.
As for selecting the target row I think you'll be able to do it, right?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus