Re: Treeview_foregroundcolor_for_specificrows



Hi, Thanks for the reply, but the solution you gave didn't work. It takes the entire thing ("<span foreground=\"red\">" + num + "</span>") as a string and prints everything. Can you give me any better idea

On Thu, Jul 24, 2008 at 10:38 AM, Mohammed Rashid <mail4rashid gmail com> wrote:
Hi Sai,
I have done following to change color of single cell.
So try something this for whole row.

string num = db.getField(i,2);
num = "<span foreground=\"red\">" + num + "</span>";
row[m_Columns.m_col_No] = num;

Regards,
Rashid


On 7/23/08, Sai <rsaikamesh gmail com> wrote:
>
> Hi,
>
>
> I need to display some records in a Gtk::TreeView. The foreground color of
> some specific rows in the tree view has to be shown in red color . Could
> anyone give me some ideas on how this can be done?
>
> Thanks In Advance,
> Saikamesh
>
>
> _______________________________________________
>  gtkmm-list mailing list
>  gtkmm-list gnome org
>  http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>



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