Native Scrollbar Issue

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
steve_nam
Posts: 60
Joined: Wed Jan 08, 2014 1:09 pm

Native Scrollbar Issue

Post 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
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Native Scrollbar Issue

Post by jmburnod »

hi Steve,

I think you have to reinit your scroll when you change its loc.
Best regards
Jean-Marc
https://alternatic.ch
steve_nam
Posts: 60
Joined: Wed Jan 08, 2014 1:09 pm

Re: Native Scrollbar Issue

Post 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
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Native Scrollbar Issue

Post 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)
https://alternatic.ch
steve_nam
Posts: 60
Joined: Wed Jan 08, 2014 1:09 pm

Re: Native Scrollbar Issue

Post 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
Post Reply