Just thought I'd let the list know about a new piece of sample code that we
just put up for you to use as you learn about the new 3.5 color APIs, and
how they work with respect to the older drawing routines and capabilities.
The sample is at
http://oasis.palm.com/devzone/knowledgebasearticle.cfm?article_id=1673
Here's the readme:
ColorDeal demonstrates how to draw in color, gray or black and
white, whatever the hardware supports, on any version of the
operating system from 1.0 to 3.5 (and beyond).
Nearly all of the interesting code is in the DrawOneCard() and
DrawCardArea() routines in ColorDeal.c.
Also demonstrated are uses of WinScreenMode (formerly known as
ScrDisplayMode) to query and/or change the active depth, and
finding the card suit characters in any version of the OS. Plus
this sample has both large and small application icons, each in
three depths, which you can use as a template for your own icons.
Note that the currently posted (mid January 2000) version of
Constructor on Windows does not properly handle editing bitmaps,
and the Windows PalmRez plugin doesn't convert them properly
either. Thus, don't be surprised if the application icons don't
look correct. However, using the APIs to draw on the screen will
work fine, as the card display demonstrates.
-David Fedor
Palm Developer Support
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html