Sign in Join

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

Mailing lists / lazarus / 2008-12

Disabling scrollbars

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Felipe Monteiro de Carvalho

Hello,

How can I disable scrollbars in a form? I have found no property to do that. Just checking the size of the form and that it doesn't have them at design time doesn't help, because the form has it's size altered to fit the Windows CE device. And it also places them in Windows CE even if the things fit the area ....

thanks.

Felipe Monteiro de Carvalho

Reply by email

Vincent Snijders
to Felipe Monteiro de Carvalho
Maybe AutoScroll := false; ?

2008/12/2, Felipe Monteiro de Carvalho :

Show quoted text 16 lines
Hello, How can I disable scrollbars in a form? I have found no property to do that. Just checking the size of the form and that it doesn't have them at design time doesn't help, because the form has it's size altered to fit the Windows CE device. And it also places them in Windows CE even if the things fit the area .... thanks. -- Felipe Monteiro de Carvalho _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Felipe Monteiro de Carvalho
to Vincent Snijders
Vincent Snijders wrote
Maybe AutoScroll := false; ?

That was the first thing I tryed. It doesn't work for wince and doesn't work for carbon.

But it works in Delphi 7, so I have found a bug.

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Felipe Monteiro de Carvalho

I think I have found a fix. In TScrollingWinControl.AlignControls

Index: lcl/include/scrollingwincontrol.inc
===================================================================
--- lcl/include/scrollingwincontrol.inc (revision 17661)
+++ lcl/include/scrollingwincontrol.inc (working copy)
@@ -62,7 +62,7 @@
   inherited AlignControls(AControl, ARect);
   HorzScrollBar.AutoCalcRange;
   VertScrollBar.AutoCalcRange;
-  if not AutoScroll then
+  if AutoScroll then
     UpdateScrollBars;
 end;

What do you think about the solution? It seams to work in carbon.

From my point of view the older code is wrong because updating the

scrollbars upon control realignment is a behavior of autoscroll.

It would be great if someone with greater knowledge about scrolling could take a
Felipe Monteiro de Carvalho

Reply by email