Re: Very simple question



amitjain wrote:

>Hi All !!!
>i have a window in that i have two labels in a hbox.
>i wnat that these labels should be resize whenever
>window resize i.e.  i dont want to fix the size of labels.
>it should change dynamicly whenever window resizes
>
How did you pack them into hbox ? There're *expand* and *fill* parameters to
gtk_box_pack_start() function. If both set to TRUE your labels will get
an all extra
space during resize, so you have to do:
gtk_box_pack_start(GTK_HBOX(hbox), label, TRUE,TRUE, 0);
Read the following about gtk_box_pack_start:
http://developer.gnome.org/doc/API/2.0/gtk/gtkbox.html#GTK-BOX-PACK-START

Olexiy





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