Delphi/Lazarus: Panel with Scroll Bars
Question by Guest | 2016-10-31 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?
Related Topics
jQuery: Scroll up and down with and without JavaScript
Tip | 0 Comments
Delphi/Lazarus: How to set up a Link to a Website in an Application
Tutorial | 0 Comments
Delphi/Lazarus: Command Line Parameter Tutorial Part 1: Sending
Tutorial | 0 Comments
Delphi/Lazarus: 3 Ways to round a Number to X Decimal Places
Tutorial | 7 Comments
Delphi: Global Treatment of Errors (Exceptions)
Tutorial | 0 Comments
Delphi: Multiline Caption for TLabel (at Run Time and Design Time)
Tutorial | 1 Comment
jQuery: Scroll down smoothly on a webpage
Tip | 0 Comments
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.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
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.
2016-11-01 at 09:21