Recent

Author Topic: Scroll bars when Panel size exceeds form  (Read 12283 times)

aussieian

  • New Member
  • *
  • Posts: 47
Scroll bars when Panel size exceeds form
« on: November 12, 2010, 02:09:26 am »
I have a Panel ( on a Form ) which can be resized in the program. At the bottom of the Form is a Status Bar.

In Delphi, whenever the Panel size exceeded the Form size, scroll bars were automatically generated ( beneath the Status Bar ).

However whenever I increase the Panel size to greater than the Form size in Lazarus, NO scroll bars are generated.

Am I missing some setting? Scroll bars are not a property of the Panel.

Any suggestions welcome. Thanks.

Zoran

  • Hero Member
  • *****
  • Posts: 1592
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Scroll bars when Panel size exceeds form
« Reply #1 on: November 12, 2010, 10:58:49 am »
Set Form's AutoScroll property to True.

aussieian

  • New Member
  • *
  • Posts: 47
Re: Scroll bars when Panel size exceeds form
« Reply #2 on: November 12, 2010, 09:52:47 pm »
Hello Zoran.

Thanks very much for the answer.

So simple! I felt it had to be just a setting, but I was fixed on the PANEL, rather than the FORM.

There is one slight difference, though I can live with it. When the panel is HIGHER than the form, it actually covers the status bar ( even when you scroll to the bottom ), wheras Delphi didn't cover the status bar. Perhaps it's just another setting, but as I said, I can live with it.

Thanks again. Your help is appreciated.

Cheers.

 

TinyPortal © 2005-2018