Scrolling group problem

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 383
Joined: Mon Mar 01, 2010 7:13 pm
Contact:

Scrolling group problem

Post by thatkeith » Wed Mar 26, 2014 1:22 pm

I have a set of image objects that are generated, filled with image content and arranged by script. They're generated into a named group and the group is resized at the end to fit the card's height. It has a vertical scroll bar set.

The group scrolls in the IDE (only when I grab the scroller BTW, not when I try dragging or swiping the content), but when I test in iOS Simulator the scroll bar thumb is the full height of the group and I can't scroll it at all.

Is there some trick to getting groups to scroll in iOS?
Should I normally be able to scroll a group with swipe/scrollwheel actions as well as by dragging the thumb directly?
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

James Little
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 47
Joined: Thu Apr 27, 2006 11:19 pm

Re: Scrolling group problem

Post by James Little » Wed Mar 26, 2014 5:39 pm

hi thatkeith,

Scroller groups are tricky. Have you taken a look at the scroller example stack? http://lessons.runrev.com/s/lessons/m/4 ... chitecture

Make sure to look at the Property Inspector as well as the script on the example stack of the group. It's been more than six months since I was playing around with scrolling groups, so I don't quite remember which properties to change (Lock/Unlock group and layer mode comes to mind).

-Todd

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 383
Joined: Mon Mar 01, 2010 7:13 pm
Contact:

Re: Scrolling group problem

Post by thatkeith » Wed Mar 26, 2014 5:46 pm

Whoosh! That looks great, thanks Todd. It also looks a little tricky as you say, although definitely not as tricky as some things I've tried. :D
I'll give it a shot.
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Scrolling group problem

Post by Klaus » Thu Mar 27, 2014 3:48 pm

Hi Keith,

yes, the cool "swiping" stuff needs to be scripted :D

But I made a quick test with 3 images in a group and the thumb and scrollbar
of the group were ugly but worked as exspected in the simulator?


Best

Klaus

Post Reply