> Hello folks,
>
> I'm using two windows, one for storing graphics off screen and one for
> displaying the graphics on screen. They are named scrnBuffer and graphics,
>
> Now, I want to refresh / update the on screen window to display the
> offscreenBuffer. I'm doing this using the following code:
>
> WinHandle temp = WinGetDrawWindow();
> WinSetDrawWindow(scrnBuffer);
> WinCopyRectangle(graphics, scrnBuffer, &drawArea, 0,DrawAreaTop,
> scrCopy);
> WinSetDrawWindow(temp);
>
> But that wont work, the scrnBuffer doesn't get refreshed until I draw
> something in it, for example a line using WinDrawLine(0,0,1,1). There have
> to be a way of updating a window, I've searched the API Reference without
> any luck.
>
> Thanks a bunch!
>
> / Nils �gren
If you use WinCopyRectangle(scrnBuffer, WinGetDrawWindows(), ...) you can copy from
your offscreen window to the current drawing
window. You only need to temporarily redefine the current window while drawing into
the offscreen bitmap not while moving its
contents. Your example references "graphics" which is undefined in your code snippet,
which may be a related/different problem.
Hope that helps.
chuck
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html