Sign in Join

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

Mailing lists / lazarus / 2010-05

New Autosize.....

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Martin

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.

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 know that I could set the siblings to the panel, I don't know (did not test) if that would make a difference.

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....

Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug2.rar
Type: application/octet-stream
Size: 2811 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100512/050baad9/attachment-0001.obj>

Reply by email

Mattias Gaertner
to Martin
Show quoted text 10 lines
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.

Show quoted text 6 lines
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.

Show quoted text 5 lines
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

Reply by email