Hi,

I want to use a graphical button with an highres images (for PalmOS 5).
I used pilrc to specify the bitmaps with a density of two :

        BITMAPFAMILYEX ID ConfigOffBMP
        BEGIN
                BITMAP "config_off.bmp" BPP 1 DENSITY 1 COMPRESS
                BITMAP "config_off.bmp" BPP 8 DENSITY 2 COMPRESS
        END
        BITMAPFAMILYEX ID ConfigOnBMP
        BEGIN
                BITMAP "config_on.bmp" BPP 1 DENSITY 1 COMPRESS
                BITMAP "config_on.bmp" BPP 8 DENSITY 2 COMPRESS
        END

and in the form I wrote

        BUTTON " "   ConfigButton     AT (17 10 20 20)  GRAPHICAL BITMAPID 
ConfigOffBMP SELECTEDBITMAPID ConfigOnBMP NOFRAME

The image is 39x39. If I use (17 10 39 39), the images are drawn in
correct size but the button itself is 39x39 in low-res, e.g. in high-res
there's an 78x78 white space with only the top-left quarter containing
the image.
Using (17 10 20 20) as coordinates, the size of the button itself is
fine, but the image is not entirely visible, only the lower-right
quarter of the image is displayed in the upper-left corner of the
button's space on the screen.

I am using pilrc 2.9p9 (in case this matters) and prc-tools 2.2. 

How can I define a graphical button for highres?

Thanks in advance for your answers.

-- 
Daniel Seifert <[EMAIL PROTECTED]>


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

Reply via email to