Re: problem with status bar



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




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