On Sun, 05 Aug 2007 10:44:19 +0200
Andreas Maier <[EMAIL PROTECTED]> wrote:

> hy-soft schrieb:
> > Andreas Maier wrote:
> >> Why do i get no answer?
> > Maybe you should repost the question.
> >
> >
> 
> Here is a patch for two bugs of the TScrollBox.

With this patch: Under gtk an empty form gets a vertical scrollbar.
Under gtk2 all IDE windows are black.


> 1) If AutoScroll is set to False and a Range is assigned. The
> Position increases after the ScrollBar reaches the end. This bug is
> also descirbed in Bug # 0001986.
> 
> 2) The Position of the ScrollBar changes if the Window was resized.
> (I think this happens only if AutoScroll was set to False)
> 
> - To fix the Bug i had to put some {$IFDEF
> VerboseScrollingWinControl}. If you wish i coud delete this lines and
> create a new patch. But i think this could usefull for further
> bug-fixing.

That's ok.


> - I compared the size of the ScrollBox, Position of ScrollBar and so
> on with a delphi project and worked out that there was a difference.
> To get the same value i hat to substract 21 on a few places. I
> declared a constant named "ScrollBarPageOffset" for that value.

The 21 is winapi specific. The LCL needs a platform independent
way. Find out what the 21 is. Maybe it is simply the size of the other
scrollbar? 
It seems you removed the places where SB_SIZE - the size of the
other scrollbar is subtracted and subtracts at other places the 21.

 
> Perhaps can someone check and report if it works on other Platforms.
> I have testet it under Windows XP.
> 
> It is possible to include the patch into then svn-tree of lazarus?

Yes, make it less winapi specific.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to