Page 1 of 1

Native Scrollbar Issue

Posted: Fri Jul 11, 2014 8:39 am
by steve_nam
My native scrollbar in Android works perfectly, but when I place the group lower on the stack/change its position and I scroll it does not return/scroll to the top of the text.

What am I doing wrong? Anybody in the forum that can assist?

Steve
Namibia

Re: Native Scrollbar Issue

Posted: Fri Jul 11, 2014 1:24 pm
by jmburnod
hi Steve,

I think you have to reinit your scroll when you change its loc.
Best regards
Jean-Marc

Re: Native Scrollbar Issue

Posted: Fri Jul 11, 2014 1:45 pm
by steve_nam
Hi Jean-Marc
Can you be a bit more specific about how "to reinit your scroll when you change its loc."

I really appreciate your readiness to assist.

Thanks a million,
Steve

Re: Native Scrollbar Issue

Posted: Fri Jul 11, 2014 7:44 pm
by jmburnod
Hi Steve,
When you create a native scrollbar you have to define rect and contentrect like this

Code: Select all

   iphoneControlSet scrollid, "rect", fldRect
   iphoneControlSet scrollid, "contentRect", (0, 0, fldWidth, fldHeight)
You have to redefine them after moving the group
Is there a english livecoder to help a poor frenchy ? 8)

Re: Native Scrollbar Issue

Posted: Sat Jul 12, 2014 4:52 pm
by steve_nam
Hi Jean-Marc
Thanks a million for the assistance! I appreciated it very, very much. The scrollbar issue I had is now resolved. I feel I have moved miles in the right direction.

Regards,
Steve