all set thank you!


-----Original Message-----
From: Kelly J Perkins [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 26, 2000 3:18 PM
To: Palm Developer Forum
Subject: Re: displaying singular bitmaps in several locations HELP!


This is what I use for drawing bitmaps and it works.

 Handle           resH;
 BitmapPtr      resP;
 FormPtr         frm;
 int                  x;
 int                  y;

 frm = FrmGetActiveForm();

 // get a handle to the resource
 resH = DmGetResource( bitmapRsc, FrontBodyBitmap);
 ErrFatalDisplayIf( !resH, "Missing bitmap" );
 resP = MemHandleLock(resH);

 // draw the bitmap
 WinDrawBitmap (resP, x, y);

 // release the memory handle
 MemPtrUnlock(resP);
 DmReleaseResource( resH );

In my case, the bitmaps are not on the form, they are just in the resource
file.

Hope that helps.

"Rick Gadbois" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> 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:[EMAIL PROTECTED]
> >
> > 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/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to