Was refering to something like this
#define listCount 5
static Char *listString[listCount]= "one", "two", "three", "four", "five"};
void drawList(Int16 i, RectangleType *bounds, Char **items)
{
WinDrawTruncChars (listString[i], StrLen(listString[i]), bounds->topLeft.x,
bounds->topLeft.y, bounds->extent.x);
}
void setupList(int lIndex)
{
FormPtr pForm = FrmGetActiveForm();
void *pList = getObjectPtr(pForm, lIndex);
LstSetListChoices (pList, 0, listCount);
LstSetDrawFunction (pList, (ListDrawDataFuncPtr) drawList);
LstDrawList (pList);
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/