Re: Adding Diffrent Gtk::CellRenderer in different rows of same column in Gtk::TreeView



I would make a custom cellrenderer that, given the column data, and for render_vfunc() simply decides what type of row it is going to be and returns whatever render() returns from an internal cellrenderer that does the right thing for the row.

I have an example for subclassing CellRenderer here [1]. Just take what it does and instead of adding the two cellrenderers together, just choose one based on the property.


On Tue, Nov 20, 2012 at 3:26 AM, Gitanshu Mehndiratta <gitanshu84 gmail com> wrote:


---------- Forwarded message ----------
From: Gitanshu Mehndiratta <gitanshu84 gmail com>
Date: Tue, Nov 20, 2012 at 12:02 PM
Subject: Re: Adding Diffrent Gtk::CellRenderer in different rows of same column in Gtk::TreeView
To: gtkmm-list gnome org


Any body has any clue. i have attached screenshots of a application which does the same.

Any help will be appreciated.

Thanks,
Gitanshu



On Mon, Nov 19, 2012 at 5:09 PM, Gitanshu Mehndiratta <gitanshu84 gmail com> wrote:
Dear All,


I want to add different widgets (combo,Text,spin button,checkbox) in different rows of same column for Gtk::TreeView.

I know how to add one widget in a column for all rows of a Gtk::TreeView but how to do the above case.

Thanks,
Gitanshu



_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list




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