Hi,
To set the list item you have to use the function : LstSetListChoices()
Change the code as below:
ListType * lstPtr;
char * lines[2];
char line1[100]= "test line1";
char line2[100]= "test line2";
lstPtr = (ListType *) GetObjectPtr(MainFListList);
lines[0] = (char *) &line1;
lines[1] = (char *) &line2;
LstSetListChoices(lstPtr, lines, 2);
LstDrawList(lstPtr);
Thanks,
Manikumar K
Developers' Nation DTS Engineer
Developers' Nation provides Palm OS Technical Support with a guaranteed
response time. Go to www.devnation.net
Developers' Nation is the fastest, most reliable and affordable way to
resolve your technical issues.
"Xor" <[EMAIL PROTECTED]> wrote in message news:53418@palm-dev-forum...
>
> Hi!
>
> I'd like to make a simple List... I'm using CodeWarrior, make a form and
put
> a list on it (MainFListList). In a button click event I try to put some
text
> in the list -> like that :
>
>
> ListType * lstPtr;
> char * lines[2];
> char line1[100]= "test line1";
> char line2[100]= "test line2";
>
> lstPtr = (ListType *) GetObjectPtr(MainFListList);
>
> lines[0] = (char *) &line1;
> lines[1] = (char *) &line2;
>
> lstPtr->itemsText=(char **) &lines;
>
> LstDrawList(lstPtr);
>
>
> but nothing happend.... why?! Can you help me?! I'm a begginer, so sorry
for
> this too simple question...
>
> thanx for your help
>
> regards
> Xor
>
>
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/