If I display an empty form and then try to display the already drawn bitmap
using, for example: 
WinDrawBitmap((BitmapPtr)FrmGetObjectPtr(frm,FrmGetObjectIndex(frm,FrontBody
Bitmap)),10,10);        
I get an "object not in form" error.
If I use a Form Bitmap, that doesn't show at all.
Is there some setup I am missing?  or something else I might be doing wrong?


-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 11:37 AM
To: Palm Developer Forum
Subject: Re: displaying singular bitmaps in several locations HELP!


"Rick Gadbois" <[EMAIL PROTECTED]> wrote in message
news:28130@palm-dev-forum...
>
> I have a need to display an ever changing variation of 6 simple bitmaps in
> 36 locations dynamically.
> I would like to do this with 6 bitmaps, displaying for example, bitmap1 in
3
> locations, bitmap 2 in 5 locations, bitmap3 in 0 locations etc...all at
> once.
> In the past for single bitmaps, I have drawn them with constructor, then
> used FrmHideObject/ShowObject, but that it is only good if I draw 216
> bitmaps....(36 locations times 6 bitmaps)....yuck.

Draw your 6 bitmaps in Constructor, then use WinDrawBitmap to directly draw
them into the screen window.  You'll need to be sure to handle
frmUpdateEvents to redraw things, but its a lot easier than relying on the
form manager to draw/undraw everything.




-- 
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 Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to