Re: GtkCList column width
| From: | Steph | Date: | Tue, 28 May 2002 15:40:33 +0000 |
| Subject: | Re: GtkCList column width | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-2067@lists.php.net to get a copy of this message | ||
Hi,
Sorry no, column_width isn't an argument in GtkCList & there's no way to access it
directly.
Your code hasn't come through to here & I can't see exactly what you mean by
'filters', I'm flying blind. Would it make sense to size the $combo->entry
element to the widest 'filter' and keep the column header at that width rather than try
to alter it on the fly?
You can access any widget's width using the GtkWidget properties so long as the widget in
question has a gdkwindow, can't tell how useful that is here tho'.
$gdkwindow = $widget->window;
$width = $window->width;
HTH
Steph
----- Original Message -----
From: "Yrgo" <gorm@hot.ee>
To: <php-gtk-general@lists.php.net>
Sent: Tuesday, May 28, 2002 2:04 PM
Subject: [PHP-GTK] GtkCList column width
> Hi,
> I have a GtkCList where it's columns headers contain a label and a GtkCombo in a VBox.
> As i do the filtering with combo i need to know the with of columns.
> column_autosize() resizes the columns by the _contents_ of list but i need it
> to be sized by the widest string of that combos filters (filter has list of strings, which are
> normaly wider than filtered list contents, so the combo gets the same size of that column).
>
> maybe there is a sort of get_column_width($x) as the set_column_with already exists
>
> -----------------------------------------
> Teatri- , kino- ja kontserdipiletid nüüd hiirekliki kaugusel!
> http://www.hot.ee
>
>
--------------------------------------------------------------------------------
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php