Re: How to set "character" width of GtkEntry widget?
| From: | Steph | Date: | Thu, 24 Apr 2003 16:36:08 +0000 |
| Subject: | Re: How to set "character" width of GtkEntry widget? | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3275@lists.php.net to get a copy of this message | ||
> Steph -
> Thanks for the info... I'm on windows so I don't think that font
> will work for me,
News for you: so'm I, and it does :)
but your last sentence regarding the width of the widget
> is controlled by the way it's packed just means I need to redo my
packing
> (various GtkBoxes, right?) in order to "scrunch" it down?
Most times when you're packing you need to utilize 'set_usize' somewhere
down the line.. it's PHP, you can calculate the length of a string and
pass it as a variable.. and then use the GtkBox packing parameters to
either allow expansion or not.
> I am interested only in width. What would be ideal is:
>
> $entry->set_character_width(5);
>
> which would make it wide enough to display 5 characters in whatever
the
> font already specified was.
You're missing the point. These are language bindings for an EXISTING
project.
> I'll work on the packing stuff...
>
Please do :)