Re: Very simple question
- From: Olexiy Avramchenko <ath beast stu cn ua>
- To: amitjain <amitjain webdunia com>
- Cc: gtk-list gnome org
- Subject: Re: Very simple question
- Date: Fri, 25 Oct 2002 12:13:27 +0300
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]