Re: Cell size
- From: Glus Xof <gtglus gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: Cell size
- Date: Thu, 24 Mar 2011 14:39:07 +0100
Yet trying to solve the problem, but it's not easy for me to explain...
I wrote,
===
Gtk::ScrolledWindow _scwindow;
_scwindow.signal_size_request().connect (
sigc::mem_fun (*this, &MainClass::set_scwd_width));
void MainClass::set_scwd_width (Gtk::Requisition * req)
{
// Here invoques a method like,
Gtk::CellRendererText * c_val = dynamic_cast <Gtk::CellRendererText *>
(m_treeview.get_column_cell_renderer (5));
c_val -> property_wrap_mode() = Pango::WRAP_WORD_CHAR;
c_val -> property_wrap_width() = record_width - 210;
c_val -> set_alignment (0.0, 0.0);
// but the above effect, just after resizing, it's not shown...
===
How could I do it ?
Glus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]