Hi
> FormPtr CurrForm = FrmGetActiveForm();
> LstNewList(&CurrForm,Goto,1,40,100,100,stdFont,5,NULL);
> GotoList = (ListPtr)GetObjectPtr(Goto);
> LstSetSelection(GotoList,-1);
> LstSetListChoices(GotoList,Choices,i);
> LstDrawList(GotoList);
this code seems ok, i tested it with:
init list: ok
select list item: ok (ignore lstSelectEvent)
exit form: ok
to make it clear: i don't know the error
i can only guess and show you some typical pitfalls, hope that this may help you
debugging the program
since the failure is only on selecting a list item it may be:
.) in the lstSelectEvent itself (try to verify this by disabling this code for a test
run)
.) memory leak of Choices or the according text strings - is the memory valid all time
the list is shown?
by(e)
Stephan
--
PGP Fingerprint: 0090 E02F 39A8 F2AF 6A79 43D7 B847 C26D 108E E2F0
PGP PublicKey: http://www.unet.univie.ac.at/~a9526342/sveigl.asc
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/