I am trying to stop a group scrolling for data entry.
I have been experimenting setting
mobileControlSet "Scroller", "scrollingEnabled", false when the long id of the data entry field is the focusedobject without success. Any ideas how to get this to work for all data entry fields and where this should be - e.g. onscrollerdidscroll... or in code for the field itself or card level etc...
Stop group scrolling for data entry
Moderators: LCNeil, heatherlaine, kevinmiller, elanorb
Re: Stop group scrolling for data entry
Hi Newtronsols,
Applying the following script to a button then setting the behaviour of any fields within a scroll group too this button works if you wish to disable scrolling on field focus. When the field looses focus, the scrolling is re-enabled.
Please see the attached stack as an example.
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
—
Applying the following script to a button then setting the behaviour of any fields within a scroll group too this button works if you wish to disable scrolling on field focus. When the field looses focus, the scrolling is re-enabled.
Code: Select all
on openField
if the environment is "mobile" then
mobileControlSet "loremScroll", "scrollingEnabled", false
end if
end openField
on closeField
if the environment is "mobile" then
mobileControlSet "loremScroll", "scrollingEnabled", true
end if
end closeField
on exitField
if the environment is "mobile" then
mobileControlSet "loremScroll", "scrollingEnabled", true
end if
end exitField
Please see the attached stack as an example.
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
—
- Attachments
-
- Scroller Example field stops scroll.zip
- (2.55 KiB) Downloaded 344 times
-
- Posts: 192
- Joined: Tue Mar 11, 2014 12:57 pm
Re: Stop group scrolling for data entry
Excellent. I would never have figured it out in such a neat way. Thanks.