> From: Robert Purcell
>
> What's happening is that when I select an item on the
> list, the entire list disappears for as long as I have
> the stylus touching the screen (selecting the item).
> When I remove the stylus, the list is redrawn
> with the new item highlighted (as expected).
> ...
> // Respond to a list selection
> case lstSelectEvent:
> lstP = (ListType *) GetObjectPtr(SelectAppList);
> error = DmGetNextDatabaseByTypeCreator(true,
> &searchState, 'DATA', 'APPP', false, 0, &dbID);
> if (!error) {
> DmDatabaseInfo(0, dbID, DBName_1, NULL, NULL,
> NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
> lines[0] = (char *) &DBName_1;
> }
> LstSetListChoices(lstP, lines, count+1);
> LstDrawList(lstP);
> } // <-- What block is this terminating?
> } // <-- What block is this terminating?
>
> Any Ideas would be greatly appreciated!! Thanks!!!
>
I assume that "case lstSelectEvent:" is inside a switch statement in your
event handler. I don't see you setting handled=true and I don't see what
you return. Plus, I am having a hard time understanding why you are
changing the contents of the list in response to a select event. Normally,
you use that to something like grab some related data and go to another
form. It doesn't make any sense (to me, at least) to change the contents of
the list and then redraw it.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/