Re: [gtkmm] TreeView text color
- From: Markus Gerwinski <markus gerwinski de>
- To: Daniel Sundberg <dss home se>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] TreeView text color
- Date: Tue, 2 Sep 2003 19:03:34 +0200
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]