Menu

#275 ttk::treeview - horizontal scrolling with single columns

open
tile (215)
3
2007-10-19
2007-10-19
Joe English
No

Will Duquette points out that, even when a [ttk::treeview] only has a single column, the horizontal scrollbar only reflects the configured column width, not the required width.

This is appropriate for the multi-column case, but to make ttk::treeview work better as a "pure" tree (or a "pure" 1-column listbox), the scroll region should reflect the required display width if there is a single visible column.

Discussion

  • Joe English

    Joe English - 2008-05-13

    Logged In: YES
    user_id=68433
    Originator: YES

    Same issue came up again -- on the tcl'ers chat, gwlester sez:

    On OS X I have a ttk::treeview with a -xscrollcommand and am only showing the tree, not the headers. The problem is that the x scrollbar does not seem to want to become active when the titles in the tree are long. Is this to be exected ?

     
  • Joe English

    Joe English - 2009-01-29

    See also #2529935 "treeview -xscrollcommand doesn't work" -- same problem.

     

Log in to post a comment.

MongoDB Logo MongoDB