LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reorder listbox

I created a VI in LV 7.0 with a multicolumn listbox that the users were able to reorder the contents using drag-drop.  I never processed any events for this control.  This control still works in the same manner in LV 8.5.1.  However, if I copy this control to a new VI I can no longer reorder the contents using drag-drop.  So why the change in behavior? 
0 Kudos
Message 1 of 4
(3,449 Views)


faustina wrote:
I created a VI in LV 7.0 with a multicolumn listbox that the users were able to reorder the contents using drag-drop.

That could not have happened at all, because LV 7.0 did not support drag & drop events. Smiley Happy
Only from LV 8.x, that too, 8.5 I think, that drag & drop events are supported thro' event structures.
 
Maybe, if you can post the VI here, someone can help you out...
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 4
(3,430 Views)

Seems to work fine here:

  1. Create an MC listbox in 7.0.
  2. Enable dragging (right click>>Selection Mode).
  3. Save the VI.
  4. Open in 8.5.1.
  5. Run it. It works.
  6. Copy the listbox and paste in a new VI.
  7. Run it as well. It still works.

There are two things you should check - 

  1. For the dragging to work you either have to have the VI in run mode (by running or pressing ctrl+M) or to grab the row at exactly the right point (on the row seperator, when the cursor changes).
  2. The item dragging must be enabled.

___________________
Try to take over the world!
Message 3 of 4
(3,421 Views)


faustina wrote:
I created a VI in LV 7.0 with a multicolumn listbox that the users were able to reorder the contents using drag-drop.

My bad day! I didnt read this properly. Smiley Sad
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 4
(3,413 Views)