Hi everyone,

If I set TPanel's border to bsSingle then the control's ClientSize is
less than Size. This is what I expected.

If I set any of the bevels instead, the control's ClientSize remains
the same as Size. I would expect the bevels be treated like borders
and also reduce client size. Or is this how it's supposed to work?

Problem arises when using autosize on TPanel. The bevels are not
accounted for when size is calculated, the panel's size is the same as
the size of the control it contains and the bevels are not visible at
all. If I turn on autosize for a TPanel with Border=bsSingle the
border is drawn correctly.

Is this a bug?


--
cobines

<<attachment: screenshot.png>>

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to