Author Topic: Listbox (move item up/down within list)  (Read 3593 times)

0 Members and 1 Guest are viewing this topic.

Guest

  • Guest
Listbox (move item up/down within list)
« on: January 11, 2008, 04:11:26 PM »
Is it possible to move an item in a listbox up or down by simply clicking on it and dragging it either up or down?

BazzaCAD

  • Guest
Re: Listbox (move item up/down within list)
« Reply #1 on: January 11, 2008, 07:11:00 PM »
At first I was going to say "No, I don't think it's possible", but then I thought I'd challenge myself.
I've posted the example files here:
http://www.opendcl.com/forum/index.php?topic=133.0

Getting the Drag&Drop to work wasn't that difficult, but I was trying to get the listbox to update as you where dragging the items around & currently that doesn't seam possible. :(
This is a cool example, I think I'll add it to the MasterDemo project. :)

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Listbox (move item up/down within list)
« Reply #2 on: January 11, 2008, 07:22:59 PM »

Nice example Barry !
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Guest

  • Guest
Re: Listbox (move item up/down within list)
« Reply #3 on: January 14, 2008, 08:22:39 AM »
Very cool!  Thanks!!!