Re: [Lazarus] Scrollbars on form ?
On Sun, 25 Sep 2016, Graeme Geldenhuys via Lazarus wrote: 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. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Scrollbars on form ?
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. ;-) Regards, Graeme -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Scrollbars on form ?
On Sun, 25 Sep 2016, zeljko via Lazarus wrote: 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. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Scrollbars on form ?
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). zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Scrollbars on form ?
On 09/25/2016 12:06 AM, Michael Van Canneyt via Lazarus wrote: On Sat, 24 Sep 2016, Dmitry Boyarintsev wrote: Did you set AutoScroll to true? I tried AutoScoll true and false. What widgetset ? That should work (AutoScroll=True, v & h scrollbar properties untouched...try to set scrollbars visible to default). zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Scrollbars on form ?
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). Could a TScrollBox (aligned alClient) be used as a work-around? Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Scrollbars on form ?
On Sat, 24 Sep 2016, Dmitry Boyarintsev wrote: Did you set AutoScroll to true? I tried AutoScoll true and false. Michael. thanks, dmitry On Sat, Sep 24, 2016 at 2:09 PM, Michael Van Canneyt via Lazarus < lazarus@lists.lazarus-ide.org> 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 Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus