I am developping an application using PToolboxLib v7.10 and PocketC v4.1.1.
I need to use Lists related to buttons, but I'd like to change some lists parameters depending on the choice of one particular list.
I tried this but it failed :
n=Fgetstate(LIST5);
if (n==0) {
List (LIST3,0,40,40,6,BUTTON3);
FsetList (LIST3, -1, 6, MOj);
Button (BUTTON3, 0x003,0,40,0,0,"topic"); }
Fctl (UPDATE);
where MOj is the new list I want to see pop up.
So when I select the 0th term in LIST5, I want LIST3 to adapt to MOj[0->5].
It actually works, but :
- the automatic resizing option doesn't work (the size stays as it was before the update)
- I need several pen downs (in an increasing number each time I update) to select sth in the list.
Can you tell me what's wrong ?
Thanks
Fabrice