Re: auto shrinking widgets (please advise)



On Tuesday 26 November 2002 00:30, Dimitar Haralanov wrote:
      Hi, I am working with GTK+ 1.2 and I would like to know whether there
is a way to make widgets auto shrink. Here is what I have in mind:

      I have a GtkLabel widget that gets set dynamically, meaning that it
could contain different text. Sometimes the widget might take up
multiple lines. GTK automatically adjusts the widgets below the label to
accommodate for the larger label. However, once the label becomes short
again, the extra space allocated for the large label does not get
reclaimed by the lower widgets.

I have exactly the same problem, and I just can't find a way to make a label 
shrink after a longer text has been replaced by a shorter text, in gtk 1.2.10 
:-(

I have searched google and other sources for a whole hour yesterday, and yet 
couldn't find a solution that actually works for my GtkLabel or the hbox it 
is in. This problem persist independent of label justification.

Here are two small screenshots which illustrate the problem. Note that all 
labels have been set to justify LEFT:
http://ed2k-gtk-gui.sf.net/right-wrong.html

If you know how to solve this, please advise.

Many thanks in advance

Cheers
-Tim




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]