Re: [gtkmm] spinButton in a Gtk::TreeView
- From: Daniel Sundberg <dss home se>
- To: Martin Schulze <martin-ml hippogriff de>
- Cc: liza trdlnk com, gtkmm-list gnome org
- Subject: Re: [gtkmm] spinButton in a Gtk::TreeView
- Date: Wed, 17 Sep 2003 21:54:14 +0200
On Wed, 17 Sep 2003 19:57:29 +0200
Martin Schulze <martin-ml hippogriff de> wrote:
> Am 2003.09.17 17:53 schrieb(en) Liza Klerck:
> > Hi,
> > I would like to add a column to a Gtk::TreeView that contains Gtk::
> > SpinButtons for each row in that column.
> > Is this possible to do ?
>
> It is possible but requires some effort. You have to derive a
> custom cellrenderer type as demonstrated for combo boxes in
> the example "cellrenderercustom". If you decide to have a go
> let us know. I'm sure that quite a few people here would be
> interested in helping you if you share the results!
>
I have done this in my project GSpeakers (http://gspeakers.sf.net). The cvs is here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gspeakers/gspeakers2/src/
You probably want to take a look at popupentry.h/cc and cellrendererpopup.h/cc. I use this cellrenderer in crossovertreeview.h/cc. However, most of it is simply borrowed from the custom cellrenderer example avaliable in the gtkmm source package.
---
Daniel Sundberg
http://sumpan.com
> Regards,
>
> Martin
> _______________________________________________
> 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]