Re: Custom Widget, how to paint standard button backgrounds?
- From: gafferuk <gafferuk gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Custom Widget, how to paint standard button backgrounds?
- Date: Tue, 31 Mar 2009 01:18:56 -0700 (PDT)
i have the following but does not work, any ideas?
bool MyWidget::on_expose_event(GdkEventExpose *event)
{
Glib::RefPtr<Gdk::Pixmap> pixmap =
get_style()->get_bg_pixmap(Gtk::STATE_NORMAL);
get_window()->draw_drawable
(
get_style()->get_fg_gc(get_state()),
pixmap,
event->area.x, event->area.y,
event->area.x, event->area.y,
event->area.width, event->area.height
);
return false;
}
--
View this message in context: http://www.nabble.com/Custom-Widget%2C-how-to-paint-standard-button-backgrounds--tp22788230p22800459.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]