Quoting Cihan Esen <[EMAIL PROTECTED]>:
> Hi,
> I am trying to refresh a graphic, according to some specific values,
> but
> when i try to draw the new graphic, the lines from previous graphic
> remains, i tried pgDeleteContext before attemtinp to draw the graphic
> according to new values but I couldn't achieved to clear the previous
> lines in the graphic.
> Are there any solutions to this case?
The 'pgcontext' structure only exists to inform the PGFX functions on how and
where to draw. When you draw to a canvas widget in PGFX_PERSISTENT mode, the
canvas widget stores all the commands you send it so it can automatically
redraw when necessary. To manipulate these stored primitives, you currently
have to use the lower-level canvas interface documented in canvas.h. For
example, to clear all the stored primitives, you could call:
pgWriteCmd(my_canvas,PGCANVAS_NUKE,0);
>
> Thanks..
>
> ======
> Cihan
> ======
>
>
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel
>
--
Only you can prevent creeping featurism!
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel