I wrote some code that did panning on a large bitmap using the method
described below. It works fine under POSE. However, when I downloaded it to
my Palm V I get the following RESET error: ScrDriverNew.c line 500 Invalid
Params. I just ordered my source code, but can someone give me some insight
while I'm waiting two weeks. I.e. are negatives not allowed in some versions
of the OS (my Palm V is 3.1.1) or is some other parameter being checked.
TIA-chuck
Bob Ebert wrote:
> At 7:27 PM +0100 20-01-00, Jeffrey Hall wrote:
> >me, because I'd like to try to support scrolling. I
> >don't really understand how to draw an image to the
> >display if the image is larger than 160 x 160. Could
> >you point me towards some information that I could
> >read on how to do this?
>
> WinDrawBitmap should also work, if you just pass the appropriate (offset)
> coordinates for the x,y. (That is, you may have to pass negative x and y
> values.) The window will clip the bitmap so it fits.
>
> Or, you could use WinCreateBitmapWindow on your larger-than-the-screen
> bitmap, and then use WinCopyRectangle to copy a portion of it to the
> screen. WinCopyRectangle gives you more control over which portion is
> drawn.
>
> --Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html