i think that your problem is that you want to use gray colors,
if this is true, then you need to change the name of the bitmap :
old name = bmp1
new name = /-2/bmp1
you need to add the " /-2/ " to the name (you will still call the bmp by the
old name "bmp1")
try to look for a document in the knowledge-base for "gray" or "/-2/"
i have the same problem with 4&8 bit colors that i didn't solve it (there is
only /-1/ or /-2/ for 1&2 bit colors)
shay
Junji Hata <[EMAIL PROTECTED]> wrote in message
news:4940@palm-dev-forum...
>
> I asked this question before, but still cannot solve the problem.
> I drew some bitmaps in CW constructor and assigned all properties
> properly. The bitmaps appear okay when CW displays the main form,
> but on the actual device, all the bitmap objects appear as completely
> black boxes.
>
> I tried to display them as parts of the main form, but since
> it did not work, I tried something like this too:
>
> VoidHand bitmapHandle;
>
> bitmapHandle = DmGet1Resource('Tbmp', PictureBitmap);
> WinDrawBitmap((BitmapType *)MemHandleLock(bitmapHandle), 91, 25);
> MemHandleUnlock(bitmapHandle);
> DmReleaseResource(bitmapHandle);
>
> but still doesn't work (same problem).
> The bitmap ID "PictureBitmap" is defined correctly in resource header
> file. And I'm sure this part of code is actually called and executed.
> I have completely no clue. Please someone give me any suggestion?
> What can be wrong??? I'm puzzled and exhausted for over two weeks.
>
> Thanks a lot!!!
>
> --
> Junji Hata
> [EMAIL PROTECTED]
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html