How to set scrollbar position in TWebScrollBox?

34 views Asked by At

I have a TWebScrollBox component on my TMS WEB Core form with a couple of TWebButton components above the TWebScrollBox. When you click on the buttons, then I want to take the user to specific locations on the TWebScrollBox component.

My IDE code completion shows me that I can do:

MyScrollBox.VertScrollBar.Position := 420;

But this doesn't work when I compile. When I compile my app, then I get the following error:

[Error]: identifier not found "Position"

So Position exists in code completion during design-time, but isn't actually there when I try to compile.

How can I set a scroll position for the TWebScrollBox?

0

There are 0 answers