On Nov 21, 2004, at 7:51 PM, Bryan Leong wrote:

It is any way i can scroll a bitmap using form.
if not how can i scroll a bitmap
can anyone show me some simple code that can scroll a bitmap.

"Advanced Palm Programming", a book I coauthored with Ray Rischpater, has code that shows how to scroll a bitmap. It does essentially what Logan describes, except it responds to dragging the pen around the screen:


the best approach is probably to make an
offscreen window from the bitmap (using WinCreateBitmapWindow())
and then use WinCopyRectangle() to copy whatever portion you
desire into the draw window.  (You can get the draw window
from a formptr with FrmGetWinHandle().)

You can get a used copy of the book on amazon for about $8.

Regards,
Steve Mann
------------------
SLO Revo, Inc.
www.slorevo.com


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to