Re: a re-display method for my DrawingArea



On Wednesday 01 March 2006 22:19, Paul Davis wrote:
> On Wed, 2006-03-01 at 22:04 +0000, eduardo fiss beloni wrote:
> > Hello
> >
> > someone knows a method to re-display a
> > Gtk::DrawingArea derived whenever I want.
> >
> > for example:
> > In my Gtk::Window derived, I have a Gtk::Button and a
> > Gtk::DrawingArea derived and whenever I press the
> > Gtk::Button (the button_pressed() event will be
> > called), the Gtk::DrawingArea derived must be updated.
> > however I don't know this update method...
>
> call the queue_update() method of the drawing area from the button press
> handler.
>
> the drawing area will get an expose event; implement on_expose_event()
> for the DrawingArea derived object and make it draw stuff there.

Gtk::Widget::queue_draw() I think, rather than queue_update() (I don't think 
it has a queue_update() method).

Chris




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]