Page 1 of 1
Native Scroll
Posted: Mon Apr 25, 2016 5:56 pm
by CElwell
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!
Re: Native Scroll
Posted: Mon Apr 25, 2016 7:49 pm
by dunbarx
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
Re: Native Scroll
Posted: Mon Apr 25, 2016 8:26 pm
by SparkOut
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.
Re: Native Scroll
Posted: Sun May 01, 2016 8:46 pm
by CElwell
Thank you both! I will look into and try these ideas
