Re: Forcing TreeView column widths while still allowing user resizing
- From: Kevin Ryde <user42 zip com au>
- To: gtk-perl-list gnome org
- Subject: Re: Forcing TreeView column widths while still allowing user resizing
- Date: Sat, 05 Jul 2008 10:32:54 +1000
muppet <scott asofyet org> writes:
sizing => 'fixed', # do NOT autosize...
fixed_width => $l->{width}, # use this, instead.
resizable => TRUE, # unless the user does something.
Yes, I've had success with that.
my @cols = (
{ title => 'One', type => 'Glib::String', default_width => 45 },
I calculate my starting widths from some "em"s or digit widths or string
width, so as to follow the font. I guess for perfection you'd ask the
renderer(s) how wide they are on some sample data settings.
--
The Copenhagen Interpretation elucidated for the layman:
You can't be sure until you see for yourself.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]