Why "m_scrwindow" doesn't resize vertically ?



Hi guys,

According to Gtkmm 3.0 reference, Gtk::VBox is now deprecated... and
Gtk::Dialog::get_vbox(), too.

So I have something like this,

Gtk::Box m_box (Gtk::ORIENTABLE_VERTICAL);
(Gtk::Dialog::) get_content_area() -> add (m_box);

"m_box" contains a table...

Gtk::Table m_table (9, 2, false);
m_box.pack_start (m_table)

And this "m_table" contains, among other widgets, a Gtk::TreeView
inside to one Gtk::ScrolledWindow...

Gtk::ScrolledWindow m_scrwindow;

m_table.attach (first, 0, 2, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 0, 0);
m_table.attach (m_scrwindow, 0, 2, 1, 7, Gtk::FILL|Gtk::EXPAND,
Gtk::FILL|Gtk::EXPAND, 5, 5);
m_table.attach (third, 0, 2, 7, 8, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 0, 0);
m_table.attach (fourth, 0, 1, 8, 9, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 5, 5);
m_table.attach (fifth, 1, 2, 8, 9, Gtk::FILL, Gtk::SHRINK, 5, 5);

My question is...

Why "m_scrwindow" doesn't resize vertically when dialog increases his size ?

Glus


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