Recent

Author Topic: Scrolling a tpanel  (Read 2618 times)

mtanner

  • Sr. Member
  • ****
  • Posts: 287
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: 4219
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/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • 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.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
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

  • Sr. Member
  • ****
  • Posts: 287
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: 4219
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/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018