0 0 Votes

Delphi/Lazarus: Panel with Scroll Bars

Question by Guest | 31/10/2016 at 10:12

I have placed some controls and input fields on a TPanel in my application. However, after my last enhancement of the program, the place on the Panel is becoming increasingly smaller.

Therefore, my idea was to make the Panel scrollable somehow. Is there any possibility to show vertical or horizontal scrollbars on the Panel so that the user can scroll if there is not enough place to show the full content?



Show Profile | Message
1Best Answer
1 Vote

Instead of your TPanel, you should just use a TScrollBox.

The Panel does not have scroll bars by itself, while the ScrollBox is exactly designed for this purpose. A ScrollBox can otherwise be used exactly like a Panel, with the only difference that additionally you can add one scroll bar or two if you want.
01/11/2016 at 09:21

ReplyPositive Negative

Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.


Ask your own question or write your own articles on askingbox.com. How to do.