Yes it does apply. You can use custom draw lists to display text without having to worry about keeping a string array with every entry. The system will ask you to draw list entry x, so you simply open record x, draw the text, then close it. Another way to accomplish the same task.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:bounce-454173- > [EMAIL PROTECTED] On Behalf Of druid > Sent: Sunday, August 14, 2005 3:52 PM > To: Palm Developer Forum > Subject: re: Read about it in the SDK. > > 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/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
