Re: [gtkmm] How to fully expand a widget within a window?



Yes, her is my code:

  // Build  object of Current Constraints Browser (VBox)
  m_currentConstraintsBox = manage(new CurrentConstraintsBrowser(cGuiRef, *this));

  // Build object of Constraint Edit Box (VBox)
  m_constraintEditBox = manage(new ConstraintEdit(cGuiRef, *this));

  // Build object of Constraint Table (VBox)
  m_constraintTableBox = manage(new ConstraintTable(cGuiRef, *this));

  // Build object of Constraint Types Browser (VBox)
  m_constraintTypesBrowserBox = manage(new ConstraintTypesBrowser(cGuiRef, *this));

  // Arrange m_currentConstraintsBox and m_constraintTypesBrowserBox in VBoxLeft
  Gtk::VBox *VBoxLeft = Gtk::manage(new Gtk::VBox());
  VBoxLeft->pack_start(*m_currentConstraintsBox);
  VBoxLeft->pack_start(*m_constraintTypesBrowserBox);

  // Add EditBox and ConstraintTableBox to VPaned window
  m_VPanedRight = Gtk::manage(new Gtk::VPaned());
  m_VPanedRight->add1(*m_constraintTableBox);
  m_VPanedRight->add2(*m_constraintEditBox);

  // Add boxes to this VPaned object
  this->add1(*VBoxLeft);
  this->add2(*m_VPanedRight);


Are you sure that you did not freeze the size of your widget before ?
Else, you coud use a Gtk::Bin container instead of a VBox.
Ben

Thx Alberto,

Like I mentioned, PACK_EXPAND_WIDGET does not help.
Maybe it is because my VBox is within a paned
window?

When I resize the window, the Widget inside
does not grow with it.
I´ve tried all pack options (Widget is a VBox)
but it has no effect.




You don't see a Vbox. Vbox could be expanded, the problem are the widget in the vbox that should expand.

Try adding widget in vbox with some code like this:

vb->pack_start <cid:part1.05000100.08090009@paro.homeunix.org>(*wid, PACK_EXPAND_WIDGET);

vb = your VBOX
wid= your widget.

Also give  a look to tutorial in  containers section.




_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list




_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list







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