Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tablelist _ columns filling all the space

30 views
Skip to first unread message

Nicolas

unread,
Apr 13, 2019, 1:25:36 PM4/13/19
to
Hi Csaba,
I don't succeed (especially on macOS with TK compiled as a framework and ttk::setTheme aqua) to make the columns of a tablelist to fill all the space available in the frame that handle it.

I create a toplevel, force the size of the toplevel with wm minsize, pack a ttk::frame with -side top -fill both -expand yes options, pack a tablelist inside the frame with -fill both -expand 1 options.
the tablelist itself contains 3 colums :
tablelist::tablelist $tbl \
-columns {0 "No." center
0 "Name" center
0 "[#]Channel" center} \
-selectbackground lightyellow -stretch all -background $Dlightmain::bcolor -font [SelFont] \
-foreground white -xscrollcommand [list $hsb set] -yscrollcommand [list $vsb set] -showseparators 1 -relief flat -labelrelief flat -borderwidth 0 -editendcommand [list listingsTbleEndCmd $namespace $ID] \
-labelforeground white -labelbackground black -labelrelief ridge -selectforeground black -selectmode extended -activestyle none -editselectedonly 1 -customdragsource 0


and when the contents of cells is short , the 3 columns take the space they need, and after there's empty spaces...

can you point me to what I'm missing...
best regards,
nicolas

nemethi

unread,
Apr 13, 2019, 2:35:06 PM4/13/19
to
Am 13.04.19 um 19:25 schrieb Nicolas:
Take a look at the -stretch widget option and the -stretchable column
configuration option.

--
Csaba Nemethi http://www.nemethi.de mailto:csaba....@t-online.de

Nicolas

unread,
Apr 15, 2019, 12:28:00 AM4/15/19
to
ok, I got it, thanks.
my issue was the order of toplevel geometry call and tablelist creation call

++
0 new messages