Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread TScrollPanel
Sat, Jul 23 2016 1:11 PMPermanent Link

thomh

Hi,

Is there a way in code to move to the top and bottom of a TScrollPanel, i.e. without using the scrollbars?
Something like ScrollPanel1.ScrollTop/ScrollBottom?

// Thom
Sat, Jul 23 2016 4:11 PMPermanent Link

Matthew Jones

<thomh> wrote:
> Hi,
>
> Is there a way in code to move to the top and bottom of a TScrollPanel,
> i.e. without using the scrollbars?
> Something like ScrollPanel1.ScrollTop/ScrollBottom?
>
> // Thom
>
>

There is a property you can set to do this. I'm away today so can't tell
you the name. You specify the scroll value, and zero is top.

--
Matthew Jones
Sat, Jul 23 2016 8:02 PMPermanent Link

Trinione

Not sure if this is what you are referring to. I just recall seeing it before.
---------------------------------

There is a new Application Viewport ScrollBy method for programmatically scrolling the browser viewport.

http://www.elevatesoft.com/manual?action=viewmethod&id=ewb2&comp=TViewport&method=ScrollBy
Mon, Jul 25 2016 9:34 AMPermanent Link

Matthew Jones

Matthew Jones wrote:

> There is a property you can set to do this. I'm away today so can't
> tell you the name. You specify the scroll value, and zero is top.

   pnlDetail.ScrollTop := 0;

Seems to be what I'm using.

--

Matthew Jones
Mon, Jul 25 2016 3:24 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Thom,

<< Is there a way in code to move to the top and bottom of a TScrollPanel, i.e. without using the scrollbars?
Something like ScrollPanel1.ScrollTop/ScrollBottom? >>

Yep:

http://www.elevatesoft.com/manual?action=viewprop&id=ewb2&comp=TControl&prop=ScrollTop
http://www.elevatesoft.com/manual?action=viewprop&id=ewb2&comp=TControl&prop=ScrollLeft

and, for relative scrolling:

http://www.elevatesoft.com/manual?action=viewmethod&id=ewb2&comp=TControl&method=ScrollBy

Tim Young
Elevate Software
www.elevatesoft.com
Image