07-09-2007 12:34 PM
07-10-2007 01:40 AM
07-10-2007 08:33 AM
07-10-2007 04:17 PM
07-10-2007 04:55 PM
07-11-2007 02:31 PM
Hey, see the attached examples. I modified the example mentioned earlier. You basically use a invoke node to get the position of the mouse cursor when the drag starts. This allows you to know what column you are dragging. Then you do the same when the "drop" event happens. This allows you to know where you want to drop the event. Then you have to program in the change in the listbox's strings. That is at least how I have done it in the past.
Let me know if this helps.
Dan
07-11-2007 03:04 PM
Thanks for the help Daniel!
I defiantly have something working now… but it seems like I can not drag and drop from the headers. I can drag and drop from the data in the cells, but I would really like to be able to drag from the columns header.
Did you have yours setup in a way where this worked? I’ve tried messing around with a few things, but with no luck so far. I suppose I can always manually set it up not show the headers, and have the top row formatted different from the rest, and as a result it would look like the header… but I’d rather not have to make the program keep track of that if it really isn’t needed. Any suggestions?
Thanks again!
07-12-2007 09:40 AM
I completely agree with you, but unfortunately, the columns aren't selectable. I think they should be and will enter in a product suggestion with NI. What I have done in the past is what you are suggesting. I did it with rows instead of columns. With multilist boxs you can select entire rows (not columns) and that gave the effect I wanted. Then I would drag and drop and update the Row headings so that they stayed the same. It is a lot of work and not as easy as it should be, but the result is very rewarding.
Hope this helps!
Dan
07-12-2007 09:45 AM
03-10-2008 02:37 PM