Hi,

I've been trying to upgrade my greyscale application (using SDK 3.1) to use
colour (using SDK 3.5).

Unfortunately, I've hit a program with WinSetForeColor(), which worked fine
on all devices and OSes (Palm III, V, Vx, IIIc, on OS 3.1, 3.3, and 3.5).

When I try to build my existing code, after making the documented changes to
use PalmOS.h and PalmCompatibility.h, I found that the WinSetForeColor() function
had changed its parameters. If I modify my program to use the new SDK 3.5 prototype,
it crashes on non-3.5 devices.

Reading the ColorDeal example, it uses WinSetColors() to select grey colours
on OS 3.0 to 3.3. However, this function is not documented anywhere in the 3.5
SDK documentation, even under the "Compatibility" section.

Questions: Where is the description of the WinSetColors() function? Why did
the WinSetForeColor syntax change, and why doesn't it work across platforms?



Any help much appreciated,

Chris.

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