Re: Cell size



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]