I have multiple applications where I have implemented dual listbox
interfaces to allow the end user to select available data from the left side
("Available") listbox and ADD it (i.e. copy, not move it, via an ADD button)
to the right side ("Selected") listbox.  The reason I copy the data and not
move it is because the user can REMOVE (via the REMOVE button) some or all
of the "Selected" items, which would present an ordering problem in the left
side listbox had the items been moved and not copied.  Since my interface
copies "Available" items to "Selected" items, to remove items it simply
deletes the selected item from the "Selected" listbox, instead of adding it
back to the "Available" listbox. I am interested in being able to move items
(not copy items) back and forth between the two listboxes, but the -sort
property does not appear to keep the listboxes sorted as some items are
removed and added back.

Aldo, can the -sort property be enhanced in a future Win32::GUI release to
continually keep the listbox items sorted as some items are removed and then
added back?  How does Visual Basic do this, or does it do this?

      DUAL LISTBOX INTERFACE

----------            ----------
|        |            |        |
|        |   [ADD]    |        |
|        |            |        |
|        |  [REMOVE]  |        |
|        |            |        |
----------            ----------
Available             Selected

          [OK]  [CANCEL]


Regards,
Eric Hansen


Reply via email to