I've implemented a list using a drawing callback function.

When first displaying the form, the first item in the list
is drawn with an inverse highlight close around the letters,
like this:

        | [ITEM 1]                |
        |  ITEM 2                 |
      |  ITEM 3                 |

If I tap anywhere else on the list, the selected item is
highlighted all the way across the list, and the first item
gets garbage highlighting, like this:

        |[]ITEM 1[               ]|
        |[ ITEM 2                ]|
        |  ITEM 3                 |

(legend: | - list box border, [ - start highlighting, ] - end highlighting) 

How do I get the first item to be highlighted all the way
across the first time, so that it behaves properly when the
OS attempts to remove the highlighting?

btw: is there any way to determine, when your list item drawing
callback function is called, whether it is drawing a highlighted
item or a "normal" item?  It seems as if the OS must set up the
foreground & background colors for you before calling the drawing
function, but if you wanted to override the default visual behavior
you would have to know...

-- 
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi./sec ... not just a good idea, it's the LAW!

Reply via email to