Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread TGrid.ScrollBy
Tue, Oct 11 2016 4:15 AMPermanent Link

Ronald

Hi,

I have a TGrid on a form and I use the OnTouchScrool event to scroll up and down. In the event I use: Grid2.ScrollBy(x,y);
This works fine for the x position, but the TGrid does not respond to the changes in the y position.
The event gets the correct changes in x and y, but ScorollBy only moves in the x direction (ScrollBy(10,10) in a TButton event also only moves in the x direction.

The browser is Safari on an iPad Pro.

How can I get around this problem?

Greetings,
Ronald   
Tue, Oct 11 2016 10:23 AMPermanent Link

Ronald

Ronald wrote:

<<I have a TGrid on a form and I use the OnTouchScrool event to scroll up and down. In the event I use: Grid2.ScrollBy(x,y);
This works fine for the x position, but the TGrid does not respond to the changes in the y position.
The event gets the correct changes in x and y, but ScorollBy only moves in the x direction (ScrollBy(10,10) in a TButton event also only moves in the x direction.

The browser is Safari on an iPad Pro.

How can I get around this problem?
>>

I was a bit too fast with the OnTouchScroll, because the Grid responds correct if swipe to horiontally or vertically, I do not need the OnTouchScroll.

Ronald   
Image