Or, on a more general note (usefull for all kinds of situations):

use the following psuedocode:

// works for a square bitmap, rectangles are left as an exercise!
for (i = 0; i < width; i+= 2) {
        WinEraseLine(x + i, y, x + width - 1, y + width - 1 + i);
        WinEraseLine(x, y + i, x + width - 1 + i, y + width -1);
}

On Monday 04 June 2001 10:12, you wrote:
> Ignoring the debate that items should not be disabled or grayed out, you
> could use the 2 bitmap method.  Display your regular bitmap, when it needs
> to be grayed out, erase it and display a 2nd bitmap that you already grayed
> out.
>
> ----- Original Message -----
> From: "Mike McCollister" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Monday, June 04, 2001 11:06 AM
> Subject: "Gray" out bitmap
>
> > Hi,
> >
> > Does anyone know how to make every other pixel white
> > on a bitmap (checkerboard patter) so that it appears
> > to be grayed out?
> >
> > Thanks,
> >
> > Mike McCollister
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail - only $35
> > a year!  http://personal.mail.yahoo.com/
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
>
> please see http://www.palmos.com/dev/tech/support/forums/

-- 
[EMAIL PROTECTED]
Author of Trek 2.2 for the Palm Pilot

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