Recent

Author Topic: Scrolling a tpanel  (Read 955 times)

mtanner

  • Full Member
  • ***
  • Posts: 226
Scrolling a tpanel
« on: February 21, 2019, 09:01:36 am »
Is it possible to scroll a panel. I have  a form with two panels. The top panel is fixed height with align=laptop, and has a heading for the form and some buttons. The other panel is align=ancient, contains lots of stuff, and is the one I would like to scroll, without scrolling the top panel out of sight.

lucamar

  • Hero Member
  • *****
  • Posts: 1991
Re: Scrolling a tpanel
« Reply #1 on: February 21, 2019, 01:39:59 pm »
Add a TScrollBox inside of or instead of the client-aligned panel and add the controls inside the TScrollBox

And please, be a bit more careful with your typing: it took me a while to guess you meant: Align = alTop and Align = alClient :D
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.2/2.0.4  - FPC 3.0.4 on:
(K|L)Ubuntu 12..16, Windows XP SP3, various DOSes.

Blaazen

  • Hero Member
  • *****
  • Posts: 2782
  • POKE 54296,15
    • Eye-Candy Controls
Re: Scrolling a tpanel
« Reply #2 on: February 21, 2019, 03:53:40 pm »
laptop & ancient  :)

Looks like some "smart" autocorrection.
Lazarus 2.1.0 r59757M FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.11.2, Plasma 5.14.2
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

mtanner

  • Full Member
  • ***
  • Posts: 226
Re: Scrolling a tpanel
« Reply #3 on: February 22, 2019, 06:54:46 pm »
lucamar - myapoligies for the typos. I plead auto-correction, but I should have checked it before finally posting.

lucamar

  • Hero Member
  • *****
  • Posts: 1991
Re: Scrolling a tpanel
« Reply #4 on: February 22, 2019, 08:10:13 pm »
No problem, it was worth the laugh :)

The important thing, does the solution I gave work OK for you?
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.2/2.0.4  - FPC 3.0.4 on:
(K|L)Ubuntu 12..16, Windows XP SP3, various DOSes.