I found out the trick is WinSetColors().  It was an unsupported (but
documented) function in 3.0 and is still in 3.5 for backwards compatibility
(of course, no guarantee it'll be there forever).  Here is the call to draw
a line in gray (this works in OS 3.x):

    const RGBColorType colorLightGray = {0x00, 0xAA, 0xAA, 0xAA};
    RGBColorType colorOldForeground;
    const RGBColorType colorWhite = {0xAA, 0xAA, 0xAA, 0xAA};
    RGBColorType colorOldBackground;

    WinSetColors( &colorLightGray, &colorOldForeground, &colorWhite,
&colorOldBackground );

    WinDrawLine( 20, 20, 100, 100 );

Steve

"Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message news:37747@palm-dev-forum...
>
> > My app displays grayscale bitmaps in Palm OS < 3.5 (i.e., by using
> > ScrDisplayMode() to set the correct depth and using Bitmap Families to
> > choose the correct image).  However, I now need to draw a "gray" line on
the
> > screen (not a bitmap) and don't know how to use similar pre-3.5
trickery.
> > Ideas?
>
>   time to write your own implementation :>
>
>   its what i had to do when dealing with these type of issues.
>
> // az
> [EMAIL PROTECTED]
> http://www.ardiri.com/    <--- free games!
>
>
>



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