Hi Everyone,
I'm having a strange problem. I've created a form with a list on it.
The items on this list are the names of custom databases loaded on the
palm. 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).
I've seen other lists in applications that don't disappear when you
make a selection so I know that it can be done...I just don't know how.
Here's some of my code: (this is not entirely complete)
static Boolean SelectListHandleEvent (EventPtr eventP) {
switch (eventP->eType){
case frmOpenEvent:
frmP = FrmGetActiveForm ();
FrmDrawForm(frmP);
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);
handled = true;
// 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);
}
}
Any Ideas would be greatly appreciated!! Thanks!!!
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/