A good way to work with bitmaps, is to store the images in an offscreen window. Also keep in mind, that offscreen window dimensions,(as well as others I suppose), can be larger than the physical dimensions of the screen. So create an offscreen window with dimensions to hold all your images, and tile your bitmaps onto this offscreen window. Now you can copy the appropriate rectangular portions from your offscreen window, to the window associated with your 'Main Form'. To scroll your image, use WinScrollRectangle. This API tells you which portion of your window is vacant due to scrolling. Fill in the vacant part of your scrolled rectangle by copying from the appropriate region in your offscreen window. You can use the scrollbar logic to help you scroll your window.
If anyone is keen, I'll post some code to illustrate what I'm talking about. Although this method is not very efficient, it's easy. Also it will suffice if your prepared not to tear ring with the offscreen window size. To find out more about offscreen window's, bitmaps etc, search the FAQ for Games, Animation on the palm website. Regards Garth Watkins ----- Original Message ----- From: "Timothy Hilton" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[email protected]> Sent: Monday, July 10, 2000 5:09 PM Subject: scrolling bitmaps? > hi, > > I am new to palm development, so please excuse me if this question is > naive. I would like to display several bitmaps on a form. Each bitmap > alone will fit on the screen, but the total size of the bitmaps is > larger than the 160 pixel screen height. I would like to be able to use > a scroll bar to view all of the images on the same form. My > understanding is that a scroll bar must be attached to some sort of > container object (a field, table, list, etc.). A scrollable table of > bitmaps would provide the kind of functionality I would like, but it > seems as though tables are not allowed to contain bitmaps. Is there a > good way to implement scrolling capability for bitmaps, or do I need to > use some sort of previous/next button navigation scheme with multiple > forms? Thanks. > > -Tim Hilton > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
