CellRenderer

View: New views
2 Messages — Rating Filter:   Alert me  

CellRenderer

by Surya Kiran Gullapalli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,

I've couple of problems. One is simple to explain, I need to display a button in Gtk::TreeView (essentially I need to have some thing like cellrendererbutton). What is the best way to go about it.

The other question is

I need to have some thing like cellrenderercombo, but instead of displaying some text items in the combo box, I'd like to display Calendar in that.

Some thing like this

http://www.tt-solutions.com/vz/wx/datectrl2.png

but in a tree view.

Any Ideas ?

Thanks in advance,
Surya

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

Re: CellRenderer

by Murray Cumming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2008-05-07 at 16:50 +0530, Surya Kiran Gullapalli wrote:
> Hello all,
>
> I've couple of problems. One is simple to explain, I need to display a
> button in Gtk::TreeView (essentially I need to have some thing like
> cellrendererbutton). What is the best way to go about it.

GtkCellRenderer apparently doesn't offer enough signals to simulate the
full behaviour of a real button, such as roll-over highlighting, but you
can respond to a click on text or an image.

For instance, this is how I made a clickable image cell renderer:
http://svn.gnome.org/viewvc/glom/trunk/glom/utility_widgets/db_adddel/cellrenderer_buttonimage.h?revision=1156&view=markup
http://svn.gnome.org/viewvc/glom/trunk/glom/utility_widgets/db_adddel/cellrenderer_buttonimage.cc?view=markup

There's a clickable text cellrenderer there too:
http://svn.gnome.org/viewvc/glom/trunk/glom/utility_widgets/db_adddel/

Ignore the complicated stuff in "ifndef GLIBMM_VFUNCS_ENABLED".

--
murrayc@...
www.murrayc.com
www.openismus.com

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