The naming convention Prakash mentions went away with Constructor 1.5
and the advent of bitmap families. Set up your bitmaps as members of a
bitmap family, and then use the WinScreenMode call right before the
bitmap is displayed.  If the screen depth is 4 when the bitmap is being
displayed, the OS will choose the 4-bit item from your family.

-hkmlt

> -----Original Message-----
> From: manish jaggi [mailto:[EMAIL PROTECTED]]
> 
> Your Code and the naming convention works fine with 2 bit bitmaps.
> But when used with 4 -bit or 8-bit bitmap  the linker gives error #32
> Please check it again
> 
> >From: Prakash <[EMAIL PROTECTED]>
> >
> >     * Create the 4 bit Bitmap/icon in constructor
> >
> >     * Name the bitmap/icon starting with /-2/ [e.g /-2/Splash]
> >
> >     * Add this, preferably in AppStart()
> >
> >     UInt32 scrDepth = 2;
> >     UInt32 scrWidth = 160;
> >     UInt32 scrHeight = 160;
> >
> >     
> WinScreenMode(winScreenModeSet,&scrWidth,&scrHeight,&scrDepth,0);
> >     FtrSet(sysFtrCreator,sysFtrNumDisplayDepth,scrDepth);
> >
> >    This way, it works for me!
> >
> >    Hope this might help you..
> >
> >Best Regards,
> >Prakash
> >
> >PS: Other possible strange prefixes
> >
> >      /-2/    A grayscale image with 2 bits per pixel
> >      /-1/    A black and white image with 1 bit per pixel
> >      /-c/    Compresses the bitmap resource to save memory
> >      /-c-2/  Compresses the resource and displays it as a 
> 2-bit grayscale 
> >image
> >      /-c-1/  Compresses the resource and displays it as a 
> black and white 
> >image
> >
> >--- Todd Walk <[EMAIL PROTECTED]> wrote:
> > > The monochrome devices seem to start in 1-bit, but I
> > > need to change to 4-bit.
> > >
> > > After looking again at Aaron's toggle program, I still
> > > don't really understand how this works.


--
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