>I expect it depends on the application (not the OS).  Some
>applications redraw their contents using their selection colors.
>Others perhaps use WinInvertRectangle.

Redrawing, with the appropriate colors, is the right way to do this.
Reason is that not everything is black and white, and inverting colors can
look spectacularly bad.

See the routines like UIColorGetTableEntryIndex and the constants you can
pass it, to figure out which color to draw in.  (Of course, this is only
3.5 and higher... before that, just hardcode black and white.)

Using the debug 3.5 and higher roms is a great way to test to make sure
you're doing it right, because the colors aren't the default black and
white.  Or use the dr9 or dr10 (due today or Monday) Simulator of Palm OS
5, which has the popup in the prefs app to let you change the color themes.

-David Fedor
PalmSource, Inc.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to