<div class="gmail_quote">Hi All,
<div> </div>
<div>I am facing a problem in gtk hbox and vbox widgets and i have to resolve this issue as soon as possible.</div>
<div>Please let me know if any one has some inputs--</div>
<div> </div>
<div>I am having following code to make a GUI for my application and I need to resize my windows to utilize all</div>
<div>space i don't want any gaps inbetween the hboxs and vboxs but these is lots of space wasting.</div>
<div>-- </div>
<div>I am using following code.. I wanted to attach the figure where i am getting lot of space between databoxs<br>but unfortunately my mail is bouncing...<br><br>I am having widgets which are packed into a hboxwidget </div>
<div> </div>
<div>so basically i did following</div>
<div> </div>
<div>vbox</div>
<div>___________________</div>
<div>| hbox hbox|</div>
<div>| |</div>
<div>| hbox |</div>
<div>|__________________ |</div>
<div> </div>
<div>and inside each hbox couple of vboxes are combined.....</div>
<div> </div>
<div> GtkWidget *box_main;<br> GtkWidget *Hbox_main;<br> GtkWidget *table[6]; <br> GtkDataboxGraph *graph;</div>
<p> GtkWidget *button; <br> GtkWidget *hbox1;<br> GtkWidget *hbox2;<br> GtkWidget *hbox3;<br> GtkWidget *vbox1;<br> GtkWidget *vbox2;<br> GtkWidget *vbox3;</p>
<p> GtkWidget *labelBox;</p>
<p> GtkWidget *label;<br> GtkWidget *quitbox;<br> int which;<br> <br> //GtkWidget separator;<br> gint i;<br> gint node_id;</p>
<p> gint signal_idle = 0;<br> GtkWidget *separator;<br> box_main = gtk_vbox_new(FALSE, 0);</p>
<div> Hbox_main = gtk_hbox_new(FALSE, 0);<br> <br> gtk_container_add( GTK_CONTAINER(window), box_main);<br> </div>
<div> vbox1 = gtk_vbox_new(FALSE, 0); <br> hbox1 = gtk_hbox_new(FALSE, 0);</div>
<p> /* Create the databoxes */<br> for( i = 0; i<6; i++)<br> {<br> /* Create a GtkDatabox widget along with scrollbars and rulers */<br> gtk_databox_create_box_with_scrollbars_and_rulers (&box[i], &table[i],<br>
FALSE, FALSE, FALSE, FALSE);<br> gtk_box_pack_start (GTK_BOX (vbox1), table[i], TRUE, TRUE, 0);<br> separator = gtk_hseparator_new ();<br> gtk_box_pack_start (GTK_BOX (vbox1), separator, FALSE, FALSE, 0);<br>
}</p>
<p> gtk_box_pack_start(GTK_BOX( hbox1), vbox1, TRUE, TRUE, 0);<br> gtk_container_set_border_width(hbox1,0);<br> gtk_box_pack_start(GTK_BOX( Hbox_main), hbox1, TRUE, TRUE, 0); <br> gtk_container_set_border_width(Hbox_main,0);<br>
// To make cross lines on the boxes</p>
<p> hbox2 = gtk_hbox_new(TRUE, 0);<br> vbox2 = gtk_vbox_new(FALSE, 0);<br> labelBox = labelBoxFunc();<br> gtk_misc_set_alignment (GTK_MISC (labelBox), 0, 0);</p>
<p> gtk_box_pack_end(GTK_BOX(vbox2), labelBox, TRUE, TRUE, 0);<br> gtk_box_pack_end(GTK_BOX(hbox2), vbox2, TRUE, TRUE, 0);</p>
<p> gtk_box_pack_start(GTK_BOX( Hbox_main), hbox2, TRUE, TRUE, 0);</p>
<p> gtk_box_pack_start(GTK_BOX( box_main), Hbox_main, TRUE, TRUE, 0);</p>
<p> /*Args are: homogeneous, spacing, expand, fill, padding */<br> <br> hbox3 = make_box (FALSE, 10, TRUE, FALSE, 0);</p>
<p> gtk_box_pack_start (GTK_BOX (box_main), hbox3, TRUE, TRUE, 20); </p>
<div> gtk_widget_show (box_main);</div>
<div> </div>
<div>The snap shot of the GUI is as follows -- </div>
<div> </div>
<div>Please let me know how i can resize the hbox and vboxs</div>
<div> </div>
<div>Thanks and Regards,</div>
<div>Nisha</div>
</div><br>