Re: [gtkmm] TreeView text color



Daniel Sundberg wrote:
>   {
>     Gtk::CellRendererText* pRenderer = Gtk::manage( new Gtk::CellRendererText() );
> 
>     int cols_count =m_TreeView.append_column(_("Color"), *pRenderer);
>     Gtk::TreeViewColumn* pColumn =m_TreeView.get_column(cols_count-1);
> 
>     pColumn->add_attribute(pRenderer->property_text(), m_columns.color);
>     
>     pColumn->add_attribute(pRenderer->property_foreground_gdk(), m_columns.color_);
>     pColumn->add_attribute(pRenderer->property_weight(), m_columns.weight_);
>   }

Thank you very much! It works. :-)

Best,

  Markus



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