Native Scroll

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
CElwell
Posts: 38
Joined: Thu Feb 04, 2016 6:29 pm

Native Scroll

Post by CElwell » Mon Apr 25, 2016 5:56 pm

Hello :)
Could someone please explain or show me an example please of how to make your app able to scroll through information without a scroll bar etc. This seems like it should be a simple task, but being a beginner I cannot figure out how to get my app to scroll without scroll bars or arrows.
Thank you in advance!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Native Scroll

Post by dunbarx » Mon Apr 25, 2016 7:49 pm

Hi.

Do you mean scroll in a field of many lines? I will not ask why a scrollbar is forbidden.
Try this in the field "f5" script:

Code: Select all

on mouseMove x,y
   if y > the vbase of me  then    set the scroll of fld "f5" to the scroll of fld "f5" + 10
   else    set the scroll of fld "f5" to the scroll of fld "f5" - 10
end mouseMove

on mouseEnter
   set the vbase of me to the bottom of me - the top of me
end mouseEnter
Now this is a kluge, and just one of many possible. But is this what you were asking about? The handler can be applied to other scrollable objects.

It likely needs refinement.

Craig Newman
Last edited by dunbarx on Tue Apr 26, 2016 7:53 pm, edited 1 time in total.

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: Native Scroll

Post by SparkOut » Mon Apr 25, 2016 8:26 pm

I get the impression the OP wants a native scroller on mobile

I can't give detailed examples on this phone but try looking up mobileControlCreate and see the scroller info. Then look up mobileControlSet and see the details relating to the scroller. In particular the vIndicator (and hIndicator) settings.

CElwell
Posts: 38
Joined: Thu Feb 04, 2016 6:29 pm

Re: Native Scroll

Post by CElwell » Sun May 01, 2016 8:46 pm

Thank you both! I will look into and try these ideas :)

Post Reply