[Lazarus] TPanel bevel and client size

Paul Ishenin ip at kmiac.ru
Fri Feb 12 08:55:16 CET 2010


12.02.2010 14:33, cobines wrote:

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

Bevels reduce ClientRect by BevelSize value.

> 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

BevelSize is used to calculate the ClientRect in 
TCustomPanel.AdjustClientRect.

> Is this a bug?

If it does not work then yes.

Best regards,
Paul Ishenin.





More information about the Lazarus mailing list