Re: Gtk::DrawingArea foreground



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]