Capture Position from a Scrollbox’s vertical or horizontal bar

Asked

Viewed 202 times

0

I created a Scrollbox and within it several Panels.

When the amount of Panels created is large, the Scrollbox itself automatically creates the vertical and horizontal scrollbars for me.

What I need is that when the scrollbox scrollbar is moved (horizontal or vertical) it would be possible to pick up the position that the scrollbar stopped, in this way I would move some of the panels that are in the inside of the scrollbox.

Below is an image of the screen I’m referring to:

inserir a descrição da imagem aqui

1 answer

0

I was able to solve it this way: In the Onconstrainedresize event of the Scrollbox I put the following code:

paFixo1.Left := ScrollBox1.Left + 10;

or

paFixo1.Top := ScrollBox1.Top + 10;

Browser other questions tagged

You are not signed in. Login or sign up in order to post.