Re: clist question
| From: | Tony Leake | Date: | Fri, 27 Aug 2004 07:40:36 +0000 |
| Subject: | Re: clist question | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5012@lists.php.net to get a copy of this message | ||
On Wed, 2004-08-25 at 17:39, Andrei Zmievski wrote:
> Can you post a snippet of the code that's not working for you?
>
Sorry for the delay, I've been off line.
I created the clist in glade then got a handle to it
$clist = $this->app->get_widget("clist_select_product");
I then used $clist->append($array) to add several rows to it, then:
$clist->set_column_max_width(0,100);
$clist->set_column_min_width(0,100);
$clist->set_column_max_width(2,100);
$clist->set_column_min_width(2,100);
$clist->set_column_max_width(3,100);
$clist->set_column_min_width(4,100);
$clist->set_column_auto_resize(1,1);
I have tried various conbinations of set_column_width,
set_column_min_width and set_column_max_width.
I think I was expecting set_column_auto_resize to make that col take up
the maximun ammount of space whereas it seems to take just the required
space and no more.
Chritians suggestion of adding a dummy column did the trick but I would
still be interested if there is a more elegant solution.
Tony