iOS: scroller problems
cmsheffield at me.com
Thu Feb 23 14:10:04 CST 2012
I need some help with this before I start ripping my hair out!
I'm trying to create a scroller to scroll a list of words in a field. I have a grouped field, with the group's lockLoc property set to true and the group resized to conceal part of the field. I can get the scroller created just fine, but I cannot for the life of me figure out what the contectRect of the scroller should be. I've set the rect of the scroller to the rect of the group. Should the contentRect be the rect of the field in the group? If so, I've found some weird problem because that doesn't work. When I scroll, a good one-third of the top of the field is cut off and I can't scroll to it. Then if I scroll to the bottom, I've got this big blank space. I'm pretty sure I'm just not getting the content rect set correctly. The rect seems okay, as I can see the scroll indicator and it appears to be in the right spot. I've looked at the scroller sample stack provided by RunRev, but it's different than what I'm trying to do, and I'm missing something.
For what it's worth, my ultimate goal is to create my own "picker" control. I know I can get one by using the iphonePick command, but I need a little more control over it, like positioning and text formatting. Any help would be greatly appreciated.
Read Naturally, Inc.
More information about the use-livecode