[Lazarus] Anchoring problem with ScrollBox and Panels

Michael W. Vogel m-w-vogel at gmx.de
Tue Jun 6 19:54:40 CEST 2017


Am 06.06.2017 um 19:39 schrieb Gabor Boros via Lazarus:
> The attached example contains a form with a ScrollBox on it with three 
> Panels in it. Height of Panel1 is static, height of Panel2 depend on 
> the size of Form/ScrollBox, height of Panel3 can be modifiable by the 
> user.
> In the example a simple OnClick emulate the variable height feature of 
> Panel3. So, start the example, modify (or not) size of the form, then 
> click on Panel3. I got a "Position range overflow..." error. What I 
> doing wrong or is this a bug?

I can tell you here the same as in the related bug report 
https://bugs.freepascal.org/view.php?id=30617, this isn't a bug it is 
not happy design. You want that the scrollbox height is increased, but 
then the Panel2 height is increased too. Simple remove anchored bottom 
of Panel2 and the loop is gone.

As you wrote in bug report: "Thank you for the example but do not do 
what I want.", please explain better, what you exactly want (step by 
step, when a user change the height of Panel3, what should happen).

Kind regards

Michl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170606/c25b3374/attachment.html>


More information about the Lazarus mailing list