native scroller datagrid

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
drunblut
Posts: 19
Joined: Mon Jun 15, 2020 10:29 pm

native scroller datagrid

Post by drunblut » Wed Oct 27, 2021 12:01 pm

Hi,

i have a datagrid form, which works fine on my android mobile with a native scroller when the scroller starts at vscroll = 0. If i set the vscroll of the covering group to 100 for example, the datagrid will be moved to the correct point, but the native scroller then doesn't work. Swiping up (scrolling down) the vscroll jumps to 0, by swiping down there is no smooth scrolling.

Any ideas, what i'm doin wrong?

Grets

Andreas

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

Re: native scroller datagrid

Post by Klaus » Wed Oct 27, 2021 12:37 pm

Hi Amdreas,

did you also set the hscroll of the native scroller?
Like this:

Code: Select all

...
mobilecontrolset "your_scroller_here", "hscroll", 100
...
Otherweise the group's scroll and scroller are out-of-sync as you experienced.


Best

Klaus

drunblut
Posts: 19
Joined: Mon Jun 15, 2020 10:29 pm

Re: native scroller datagrid

Post by drunblut » Wed Oct 27, 2021 2:40 pm

Hi Klaus,
thanks for your reply! Should that be done in the createlistscroller?

Grets

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

Re: native scroller datagrid

Post by Klaus » Wed Oct 27, 2021 2:43 pm

Hi Andreas,
drunblut wrote:
Wed Oct 27, 2021 2:40 pm
Should that be done in the createlistscroller?
this should be done right after setting the scroll of your field, whenever that happens!


Best

Klaus

drunblut
Posts: 19
Joined: Mon Jun 15, 2020 10:29 pm

Re: native scroller datagrid

Post by drunblut » Wed Oct 27, 2021 3:59 pm

Hi Klaus,

that was the important hint. i fixed it! Thanks a lot!!

Grets
Andreas

Post Reply