Nope, there's a much easier way.  You don't need to have the bitmap on the 
form, you just need to have it in your resource file, then do something like 
this each time you want it drawn.  The system will pick the correct family 
member for the current screen mode.

memH = DmGetResource('Tbmp', bmpID);
bmpP = (BitmapPtr) MemHandleLock(memH);
WinDrawBitmap(bmpP, 0, 0);
MemHandleUnlock(memH);
DmReleaseResource(memH);

I didn't test that, but that's the idea.
---
Tim Kostka


"Mihail Ivanchev" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi, i have a bitmap resource family and i want to draw the correct variant 
> to a window. The only way i can figure is:
>
> 1. store all bitmap resources in a form
> 2. load the form
> 3. copy this part of the form to the window
> 4. free the form
> 5. copy the window with the bitmap whenever you need it
>
> is this the only way to do it?
>
> thank you
> 



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

Reply via email to