"Mike Montalvo" <[EMAIL PROTECTED]> wrote in message
news:34118@palm-dev-forum...
>
> > 2. The normal way to display a bitmap is to draw it.with
WinDrawBitmap().
>
> Hmm...well that means in Constructor, for each 'light' on the screen, I'd
> have to put 2 bitmaps on top of each other, label them differently, and
make
> sure they are lined up perfect. Anytime I'd want to change the bitmap, Id
> have to erase it and then WinDrawBitmap the one I want? So instead of 6
Form
> Bitmap resources I'd have 12. Am I missing something? It sound like a
waste
> and makes it more confusing.
>
> I dont understand why youd want to do this if you could just have one Form
> Bitmap resource and change the bitmap associated with that one (for each
> 'light').
>
> The way you describe is actually the way I did it in the past. I forgot
> about that. But it was only for one 'connection status' icon. I now have
6
> 'lights' I want to show.
Bitmaps just don't work that way in PalmOS... also, hiding/showing bitmaps
doesn't work either.
Instead, set up 6 gadgets with the same dimension as your light bitmap. On
the FrmOpen/FrmUpdate events, after FrmDrawForm() is called, loop through
the gadgets and use WinDrawBitmap to draw the appropriate light. Its easy,
and it avoids sillyness with extra bitmap objects on the form.
--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/