문제

I have a custom component (TScrollingWinControl). But the scroll bars never appare, how do you show scroll bars on this component? Do you have to create a procedure to read them in or are they all ready there?

도움이 되었습니까?

해결책

You give a Range that is longer than the control's client width/height. To scroll, you can set its position. Eg:

HorzScrollBar.Range := ClientWidth * 2;
HorzScrollBar.Position := HorzScrollBar.Range - ClientWidth;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top