I read an email somewhere that there is a function which allows you to
retrieve the width of a letter in the current font. Thus, if you calculate
the width of uppercase 'M', which is generally the widest character (in
English anyway), you can dynamically set the width of the widget based on
how many characters you need to fit. I wish I could remember the name of the
function.
>From: "NAGEL Erlend" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: GtkEntry
>Date: Tue, 19 Oct 1999 11:00:44 +0200
>
>Michael Vance wrote:
>
> > As far as I know, you have to manually size the GtkEntry widgets. I
> > don't know if this is an actual problem with the way Glade displays
> > stuff, or just in the packing routines of Gtk+ period.
>
>I did find that option, where one sizes in number of pixels. That is a
>really really ugly solution, because it does not take the size of the
>type/font/characters in consideration. It defeats the purposes of
>doing all the rest of the interfaces relatively using hbox and vbox
>tricks. Is there really no sensible way to have a dynamic sizing on
>the GtkEntry widgets?
>
>Erlend.
>
>+---------------------------------------------------------------------+
>To unsubscribe from this list, send a message to [EMAIL PROTECTED]
>with the line "unsubscribe glade-devel" in the body of the message.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.