2011/3/23 Murray Cumming <[email protected]>: > On Wed, 2011-03-23 at 08:36 +0100, Glus Xof wrote: >> 2011/3/22 Glus Xof <[email protected]>: >> > In my app, a Gtk::TreeView is included in a Gtk::ScrolledWindow... >> > >> > In a precedent message, I asked for the cell wrapping method... but >> > right now, I cannot see the method to set the "property_wrap_width()" >> > according the Gtk::ScrolledWindow width. >> > >> > (The concerned cells are the last column ones... so, resize when the >> > app main window resize too). >> >> I know that it's not always easy to explain the things... >> >> In my app, I have a >> >> Gtk::TreeView m_treeview >> >> with these columns, >> >> m_treeview.append_column (" Id. ", m_columns.v_tid); >> m_treeview.append_column_editable ("Sel.", m_columns.v_sel); >> m_treeview.append_column ("First", m_columns.v_fst); >> m_treeview.append_column ("Second", m_columns.v_sed); >> m_treeview.append_column ("Third", m_columns.v_thb); >> m_treeview.append_column ("Value", m_columns.v_val); >> >> The idea, like it's yet doing, is to limit the width of the first >> columns, but the last one should take all the space available. That >> I'm trying here, with these column cells, is to adjust the text along >> of the *visible* free space... and cut lines when longer. > > The TreeView generally expands only the last column anyway. > >> Maybe, because this TreeView is inserted in a Gtk::ScrolledWindow, to >> set this width becomes more difficult... and here a scroll bar >> appears, just that I'm trying to avoid. I'd like to see only the >> vertical one. > > You can prevent a horizontal scrollbar by setting the scroll policy: > http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1ScrolledWindow.html#a17352bdfd39d8a895e5c885f0bd1a246 > > Isn't this the real issue?
I think not exactly... I'm working on a Mr. Yann suggestion... >> Moreover, when the Main Window resize, the ScrolledWindow resize too, >> and the text should refit. >> >> Is there a way to manage it ? > > -- > [email protected] > www.murrayc.com > www.openismus.com > > _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
