[Lazarus] New Autosize.....
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu May 13 18:12:44 CEST 2010
On Wed, 12 May 2010 01:22:50 +0100
Martin <lazarus at mfriebe.de> wrote:
> At least my best guess.....
>
> Hi Mattias, this whole form had the same regression before (long before
> new autosize) (I don't remember what was it back then, but it had been
> fixed....)
>
> Now it is broken again.
>
> pnlRight has many buttons. They are supposed (and once were) to be one
> below the other.
Most have negative Left,Top.
> The main point is, that the all have akLeft+akRight => so they keep the
> same left/right distance (0 pixel) to the panel, if the panel resizes.
> The panel is autosize.
>
> The result used to be, that the panel sizes to the size of the widest
> button, and all others follow.
I see. This was never implemented. At least not on purpose.
I implemented this.
Please test.
> I know that I could set the siblings to the panel, I don't know (did not
> test) if that would make a difference.
That was already implemented.
> The point is, even without the siblings being set, it should work.
>
> there original configuration, is all having the same size, and therefore
> all fitting exactly the panel: akLeft+akRight should keep the left+right
> side relative to the panel....
Mattias
More information about the Lazarus
mailing list