Spruce Weber wrote:
>
> 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
Yes, this function is documented. However, for international fonts or
odd-shaped fonts, there is no way of telling which is the largest
glyph. There is a function that gets the total length of a full
string. It does not work directly with glade though then, and this
seems to turn GTK upside down. For example the normal button widget
can size with the text displayed in it. Similarly I would expect the
GTKEntry widget to behave according to the max entry length. Am I
completely wrong?
Erlend.
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.