|
From: Joe E. <jen...@fl...> - 2005-09-21 00:15:13
|
Jelco Huijser wrote: > Currently the the treeview widget still lacks support for > -xscrollcommand option and xview command which it "ought" to support > (referring to > the treeview documentation). I'm using the treeview as a replacement > for some mclistbox windows and can't get around the fact that they > become equally wide, so I need the horizontal scrollbar move the pane > left or right. You can adjust column widths from the program with: $tv column $columnid -width $pixels Unfortunately there's no easy way (at present) to automatically calculate preferred column widths. (Suggestions welcome here.) The treeview's requested width will be the sum of the visible column widths. If the actual width ends up larger or smaller than this, the difference is added to or subtracted from the last column, down to a minimum width. If necessary, subsequent columns are "squeezed" from right to left. I plan to replace this algorithm with the one the [ttk::paned] widget uses, that seems to work better. > Is there a workaround, and/or will this be fixed in the next release? I > read there is work in progress for calculating the column size more > accurately, I guess these issues are related. --Joe English jen...@fl... |