Tk Library Source Code

View Ticket
Login
Ticket UUID: 2807160
Title: ComboBox should use unmanaged scrollwindow
Type: Patch Version: None
Submitter: danckaert Created on: 2009-06-16 13:21:34
Subsystem: bwidget Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-06-29 18:56:55
Resolution: Accepted Closed By: oehhar
    Closed on: 2009-06-16 15:39:49
Description:
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.
User Comments: oehhar added on 2009-06-29 18:56:55:
Thank you, doc changed

danckaert added on 2009-06-17 15:45:06:
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.

oehhar added on 2009-06-16 22:39:49:
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

danckaert added on 2009-06-16 20:21:35:

File Added - 331182: combobox.patch

Attachments: