Here is a stub of newbie code to handle this if the taps come within 50 ticks
on the same selection (and there are no doubt other/better ways to handle this)
static Boolean MainFormHandleEvent(EventType* pEvent)
{
UInt32 prevTick = 0;
case lstSelectEvent:
..Int16 curIndex = pEvent->data.lstSelect.selection;
..static Int16 prevIndex = -1;
..// this is a check for *WHICH* list
..switch (pEvent->data.lstSelect.listID)
..{
..case MainFindMatchesList:
...curTick = TimGetTicks();
...UInt32 elapsed = curTick - prevTick;
...char* curSelectedStr = gListContents[curSelectionIndex];
...char msg[40];
...UInt16 msgLen = StrPrintF(msg, "PrEl: %ld %ld %d %d",
.............prevTick, elapsed,
.............curSelectionIndex, prevSelectionIndex);
...Int16 len = StrLen(curSelectedStr);
...if ((elapsed < 50) && (curIndex == prevIndex)) {
....WinDrawChars(msg, msgLen, 10, 15);
...}
...else {
....WinDrawChars(curSelectedStr, len, 1, 15);
...}
...prevTick = TimGetTicks();
...break;
..}
..prevSelectionIndex = curSelectionIndex;
..break;
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/