>I'm aware of the enum UIColorTableEntries which explains the
>UIObjectSelectedFill parameter, but I can't find UIColorGetIndex. I've
>searched the header files and the PDF documentation... But no luck:-(
That's an internal macro used inside the ROM for speed, which bypasses the
API and accesses an OS global variable directly, so it is isn't at all safe
for applications to use. The supported API for the exact same thing is
UIColorGetTableEntryIndex().
If profiling tells you that this routine is a bottleneck (which I highly
doubt) then cache its return value, but don't paint yourself into a corner
by directly reading from the global variable.
Yet another example of something you might see in the rom which would be a
pretty bad idea to do. Remember, the license lets you use the sources for
debugging and optimization, and "optimization" isn't a euphemism for
"hacking"... :-)
-David Fedor
Palm Developer Support
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/