Re: problem with status bar

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

 



David
>
> If you pack a widget as first, it will appear first in the vbox.
> If you pack it last, it will apear last.
 so the pack should be in this order

vbox = gtk_vbox_new (FALSE, 0);
   gtk_container_add (GTK_CONTAINER(hWnd), vbox);
   if (bStatus)
   {
   statusbar = gtk_statusbar_new();
  box = (GtkFixed*)gtk_fixed_new();
   gtk_box_pack_start( GTK_BOX (vbox), (GtkWidget*)statusbar, TRUE, TRUE, 
0);
   gtk_box_reorder_child(GTK_BOX(vbox) statusbar,9999);
   gtk_box_pack_end( GTK_BOX(vbox), (GtkWidget*)box, TRUE, TRUE, 0 );

   }
   else
   {
      box = (GtkFixed*)gtk_fixed_new();
   gtk_box_pack_end( GTK_BOX(vbox), (GtkWidget*)box, TRUE, TRUE, 0 );
}

Regards
Luiz

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux