LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drag and drop multicolumn listbox problem

Solved!
Go to solution

Hi!

 

I would like to achive drag and drop between listbox and multicolumn listbox but with the following rules:

- i want to be able to insert on drop in between already added items in muticolumn listbox let say only on first column for start. I also do not want empty spaces between items. So that means that the last row you can drop is alway the frist empty row in multicolumn listbox. 

 

by default listbox does allow basic drag and drop and in between items. But as soon as put some event code in block diagram in between items drop disapears and I dont know how to manage it programatically.

0 Kudos
Message 1 of 2
(3,064 Views)
Solution
Accepted by topic author aucman

I struggled for this a bit too.  My key was the fact that in the event case you should preserve, or append new data to the Data array.  Still getting drag and drop to work consistently the way you want in LabVIEW is a pain.  Not impossible, you just might spend more time on this one UI function than you thought you would going into it.

 

http://forums.ni.com/t5/LabVIEW/Why-Does-Adding-an-Event-Change-Drag-And-Drop-Functionality/td-p/321...

Message 2 of 2
(3,037 Views)