Re: Led Widget
- From: Florent Blanchon <florent blanchon gmail com>
- To: Robert Pearce <rob bdt-home demon co uk>
- Cc: gtkmm-list gnome org
- Subject: Re: Led Widget
- Date: Wed, 16 Sep 2009 22:18:29 +0200
Thanks.
In fact, I've found in gtkmm online doc how to do a widget.
I've done everything good but for the expose event.
Here the code :
Glib::RefPtr<Gdk::GC> gc = Gdk::GC::create(m_refGdkWindow);
gc->set_background(Gdk::Color("red"));
//modify_bg(Gtk::STATE_NORMAL , Gdk::Color("red"));
get_window()->draw_rectangle(gc, true, 0, 0, 10, 10);
return true;
I would like to set the foreground and background color.
But the "gc->set_background(Gdk::Color("red"));" seems not to work.
I don't quite understand why....
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]