Re: How to set "character" width of GtkEntry widget?
| From: | Benjamin Smith | Date: | Thu, 24 Apr 2003 21:08:28 +0000 |
| Subject: | Re: How to set "character" width of GtkEntry widget? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3278@lists.php.net to get a copy of this message | ||
Try Set_Max_Length()...
http://gtk.php.net/manual/en/gtk.gtkentry.method.set_max_length.php
As far as usize, you can use
$entry->Set_Usize($width, -1);
Documentation for php-gtk on the site is generally fairly complete, even if
not explained very well (or at all). Google is your friend when you run into
this. =)
Make sure to leave lots of notes as you figure things out. I can't say how
many times I've been saved by my own notes...
-Ben
On Wednesday 23 April 2003 09:30 pm, Philip Hallstrom wrote:
> Hi -
> I'm just starting out with gtk-php and am muddling my way through
> some things. I'd dig through the apps up on the website, but it's broken
> at the moment...
>
> One thing I can't figure out is how to make a narrow GtkEntry widget. I
> know I can do use set_usize(), but that's in pixels and it seems like the
> wrong way to make a narrow widget???
>
> What I'm looking for is the equivalent of the SIZE attribute in HTML for
> "<input type=text name='foo' size=5>"?
>
> Does that exist? If it doesn't, is the height of a GtkEntry *always* the
> same (since there is no way to set one and not the other)???
>
> Thanks all!
>
> -philip