#386 ooDialog - ListBox selectedIndexes bug for category dialogs

3.2.0
closed
5
2012-08-14
2007-08-21
No

In ooDialog, the ListBox control can be a multi-selection ListBox, meaning more than 1 row can be selected by the user.

There are two methods for getting the multi-selection indexes of the ListBox in ooDialog. One is the selectedIndexes method of the ListBox control, the other is the getMulitList method of the PlainBaseDialog.

Both of these methods are broken if the ListBox is part of a CategoryDialog or one of its subclasses (like the PropertySheet class.)

When the ListBox is multi-selection in a CategoryDialog, both the selectedIndexes and the getMultiList methods return the empty string no matter how many rows are selected.

This bug was reported on comp.lang.rexx by Phil

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2007-08-21

    Simple example showing the problem

     
  • Mark Miesfeld

    Mark Miesfeld - 2007-08-22

    Logged In: YES
    user_id=191588
    Originator: YES

    Revision 693 fixes this bug.

    The bug was only with the ListBox~getSelectedIndexes method. For CategoryDialogs, there is a getCatalogMultiList method that should be used rather than the getMultiList method.

     


Anonymous

Cancel  Add attachments