At 08:52 PM 14/3/2002 -0800, you wrote:
>Selecting an item in a table un-highlights the previously selected item. Is
>there an OS-friendly way to allow multi-selection, so that the only way to
>un-highlight a cell is to select it again?
I believe not.
>Or do I have to roll my own? I am not looking forward to handling all the
>stuff to track penEnter, penExit from the row that was tapped, etc. But if
>I have to, then how would my custom draw procedure invert a row in a
>friendly fashion -- that looks consistent on all devices? My custom draw
>procedure only draws text, but it draws color text. I'm not sure what the
>formula that the OS uses to invert a row of colored text on all devices.
(Without looking at the OS code...)
Experiment with WinPaintChars which uses the current draw state (which may
be made to invert, even in color), or use WinDrawChars after playing with
the colors yourself.
WinSetForeColor(UIColorGetTableEntryIndex(UIObjectForeground));
WinSetBackColor(UIColorGetTableEntryIndex(
selected ? UIFieldTextHighlightBackground : UIFieldBackground));
Matt
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/