Re: expanding horizontally but not vertically



On Sun, Mar 25, 2001 at 10:33:23AM -0600, Brian Smith wrote:
> On Sun, 25 Mar 2001 10:44:35 -0500, Paul Davis wrote:
> 
> +---------------------------------------------+
> |Username: <Entryfield> Password: <Entryfield>|
> +----------------------+----------------------+
> |                      |                      |
> |                      |                      |
> |  This should expand  |  So should this      |
> |                      |                      |
> |                      |                      |
> |                      |                      |
> |                      |                      |
> |                      |                      |
> +----------------------+----------------------+
> | Status line                                 |
> +---------------------------------------------+
> 
> This is a simplified view of my window, I want the entryfields to
> expand horizontally, but not the text "username" and "password", 
> and nothing in that box should expand vertically.  The status
> line text should also expand horizontally but not vertically.  
> The two boxes in the middle which show information about the
> server and are clists should expand both horizontally and 
> vertically.  
> 
> Thanks... and thanks for the quick reply.
> 
> Brian Smith
> 

mmm... fun
Try something like this. I may be wrong though

vbox = gtk_vbox_new (FALSE, 0);

hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);

gtk_box_pack_start (GTK_BOX (hbox), username_label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), username_entry, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (hbox), password_label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), password_entry, TRUE, TRUE, 0);

hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);

gtk_box_pack_start (GTK_BOX (hbox), clist1, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (hbox), clist2, TRUE, TRUE, 0);

hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);

gtk_box_pack_start (GTK_BOX (hbox), status_line, TRUE, TRUE, 0);




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