Re: Gtk::DrawingArea foreground
- From: "Jonathon Jongsma" <jonathon jongsma gmail com>
- To: "eduardo fiss beloni" <eduardobeloni yahoo com br>
- Cc: gtkmm list <gtkmm-list gnome org>
- Subject: Re: Gtk::DrawingArea foreground
- Date: Fri, 24 Mar 2006 15:50:49 -0600
On 3/24/06, eduardo fiss beloni <eduardobeloni yahoo com br> wrote:
>
> hello people
>
> according to this manual page (botton of page):
> Drawing Lines
> Chapter 14. The Drawing Area Widget
>
> the background of Gtk::DrawingArea is gray by
> default...
> so, can I change it ???
>
> note that's relationed with my previous answer ( not
> yet replyed... )
>
> thanks to everybody
>
One way:
inside an expose event handler:
Glib::RefPtr<Gdk::Window> win = this->get_window();
win->set_background(c);
win->clear();
where 'c' is a Gdk::Color object
Jonner
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]