Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-09

Scrollbars on form ?

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hi,

How is one supposed to get the scrollbars on a form to work ? I have a form, with a custom control on it which is bigger than the form. I would expect the scrollbars to appear if AutoSize is false, and both scrollbars have visible set to true.

However, no matter what the combinations of properties I set, the scrollbars on the form do not appear.

Is there some trick to this ?

Michael.

Reply by email

Dmitry Boyarintsev
to Michael Van Canneyt

Did you set AutoScroll to true?

thanks,
dmitry

On Sat, Sep 24, 2016 at 2:09 PM, Michael Van Canneyt via Lazarus <

Show quoted text 23 lines
wrote: Hi, How is one supposed to get the scrollbars on a form to work ? I have a form, with a custom control on it which is bigger than the form. I would expect the scrollbars to appear if AutoSize is false, and both scrollbars have visible set to true. However, no matter what the combinations of properties I set, the scrollbars on the form do not appear. Is there some trick to this ? Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160924/2fe7d050/attachment-0001.html>

Reply by email

Michael Van Canneyt
to Dmitry Boyarintsev
Dmitry Boyarintsev wrote
Did you set AutoScroll to true?

I tried AutoScoll true and false.

Michael.

Show quoted text 29 lines
thanks, dmitry On Sat, Sep 24, 2016 at 2:09 PM, Michael Van Canneyt via Lazarus < > wrote: > > Hi, > > How is one supposed to get the scrollbars on a form to work ? > I have a form, with a custom control on it which is bigger than the form. > I would expect the scrollbars to appear if AutoSize is false, and both > scrollbars have visible set to true. > > However, no matter what the combinations of properties I set, the > scrollbars > on the form do not appear. > > Is there some trick to this ? > > Michael. > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus-ide.org/listinfo/lazarus >

Reply by email

Michael Van Canneyt
to zeljko
zeljko wrote 8 lines
On 09/25/2016 12:47 AM, Graeme Geldenhuys via Lazarus wrote: > On 2016-09-24 23:06, Michael Van Canneyt via Lazarus wrote: >> I tried AutoScoll true and false. > > I wouldn't be surprised if it only works with a specific LCL widgetset > (eg: LCL-Win32). It works on qtlcl on all supported platforms (linux,mac, windows).

I use GTK. Can you make a demo that shows this ?

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote
I use GTK. Can you make a demo that shows this ?

Michael, I just tried with a brand new project, dropped a large TMemo on the form, resized the form smaller, then set AutoScroll = True, and it worked with LCL-GTK2. So you seem to be in luck with this LCL feature. ;-)

Regards,
Graeme

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 6 lines
On 2016-09-25 09:01, Michael Van Canneyt via Lazarus wrote: > I use GTK. Can you make a demo that shows this ? Michael, I just tried with a brand new project, dropped a large TMemo on the form, resized the form smaller, then set AutoScroll = True, and it worked with LCL-GTK2. So you seem to be in luck with this LCL feature. ;-)
Turns out it is my own fault.
I still had an Align:=alClient statement somewhere, of course then it will not work :/

Apologies for the noise...

Michael.

Reply by email