annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

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 Compliments
Message 1 sur 4
3 491 Visites


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 heureux
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 Compliments
Message 2 sur 4
3 472 Visites

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 sur 4
3 463 Visites


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 triste
- Partha ( CLD until Oct 2027 🙂 )
0 Compliments
Message 4 sur 4
3 455 Visites