Menu

#222 ComboBox should use unmanaged scrollwindow

closed-accepted
bwidget (50)
5
2009-06-16
2009-06-16
No

When one of the values of a combobox contains a long string, not only the horizontal, but also the vertical scrollbar appears (even when there are only a few entries). It seems the window height is always [nr of entries]-1 in that case.

Example:
ComboBox .cb -textvariable v -values {a b somelooooooooooooooooooooooooongstring c d}
pack .cb
and click on the arrow button.

The attached patch solves this.

Discussion

  • Koen Danckaert

    Koen Danckaert - 2009-06-16

    patch for BWidget 1.8

     
  • Harald Oehlmann

    Harald Oehlmann - 2009-06-16
    • status: open --> closed-accepted
     
  • Harald Oehlmann

    Harald Oehlmann - 2009-06-16

    Accepted, commited in cvs.

    Koen, do you have any insight of purpose the -managed option of ScrolledWindow ?
    Could you write a text for the man page ?

    Thank you,
    Harald

     
  • Koen Danckaert

    Koen Danckaert - 2009-06-17

    As found in the ChangeLog:
    -managed option: if true, scrollbar are managed during creation,
    so their size are included in the requested size of the
    ScrolledWindow. If false, they are not.

     
  • Harald Oehlmann

    Harald Oehlmann - 2009-06-29

    Thank you, doc changed

     
MongoDB Logo MongoDB