At 10:02 AM 6/21/2001 -0700, you wrote:
>While we're at it, is there any way to draw text under OS 3.3 in a 
>grayscale other than black or white? Our app suite sets Palm V/Vx devices 
>to 4-bit mode and uses those grayscales under 3.5. I know how to set this 
>mode under 3.3 (ScrDisplayMode), but I don't know how to draw grayscale 
>chars without an equivalent of WinSetTextColor.

It's no longer documented (or maybe it never was), but there is a call 
which sets the fore/back
colors when in greyscale mode on OS < 3.5.  From Windows.h:

// "obsolete" color call, supported for backwards compatibility
void WinSetColors(const RGBColorType *newForeColorP, RGBColorType 
*oldForeColorP,
                         const RGBColorType *newBackColorP, RGBColorType 
*oldBackColorP)
                                                         SYS_TRAP(sysTrapWinSetColors);




--
Bill Kirby
Electron Hut
www.electronhut.com





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