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

Re: Drawing dinamically



Well, how can i do it?

Quoting Russell Shaw <rjshaw netspace net au>:

> Gustavo Cipriano Mota Sousa wrote:
> > Hi,
> >
> > I am having some problems trying to draw things in a GtkDrawingArea
> >
> > I have a function that's called from a handler, this function loops for a
> while
> > making some calculations related to the program, and inside the loop i have
> a
> > gdk_draw_rectangle(), to draw in the drawing area, but when i run the
> program it
> > executes all the loop and after it, all the drawings are drawn.
> >
> > How can I do to draw in the darea from inside my loop and make it appears
> in the
> > screen while it is looping?
>
> You need to trigger an expose event at every iteration so that
> the widget is redrawn.
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
>


------ BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU d-(?) s+:- a--- C++(+++)>$ UBL++>$ P+ L++>$ !E W++ N? o? K? w- O- M- V- PS
PE+(++) Y? PGP- t S? X? R+ tv- b+ DI? D- G++ e- h! r- y?
------ END GEEK CODE BLOCK ------

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



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