Custom Widget, how to paint standard button backgrounds?
- From: gafferuk <gafferuk gmail com>
- To: gtkmm-list gnome org
- Subject: Custom Widget, how to paint standard button backgrounds?
- Date: Mon, 30 Mar 2009 10:21:40 -0700 (PDT)
Hi, ive created a custom gtkmm widget and would like it to behave and look
like a table full of buttons like 10 by 10.
how do i paint the standard backgrounds for buttons? including hover, mouse
down etc.
I came up with this but my app shuts down right away:
Gdk::Cairo::set_source_pixmap(cr,
get_style()->get_bg_pixmap(Gtk::STATE_NORMAL), 0.,0.);
--
View this message in context: http://www.nabble.com/Custom-Widget%2C-how-to-paint-standard-button-backgrounds--tp22788230p22788230.html
Sent from the Gtkmm mailing list archive at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]