From RAD Studio API Documentation
Jump to: navigation, search


property BorderWidth: TBorderWidth read FBorderWidth write SetBorderWidth default 0;


__property Vcl::Controls::TBorderWidth BorderWidth = {read=FBorderWidth, write=SetBorderWidth, default=0};


Type Visibility Source Unit Parent
property protected
Vcl.ExtCtrls TCustomPanel


Specifies the distance, in pixels, between the outer and inner bevels.

Use BorderWidth to specify how wide the border around the panel should be. A value of 0 (zero) means no border should appear.

The border of a panel is the area between the outer and inner bevels. It is visible only if the inner bevel is raised or lowered, but affects the inset of the caption within the panel even if BevelInner is bvNone. If the Alignment property is not taCenter, the Caption will be aligned to the inner edge of the border. This edge is BorderWidth pixels in from the outer bevel if BevelInner is bvNone. It is the inner edge of the inner bevel otherwise.

Do not confuse the border of the panel with line drawn around the panel itself. The line around the panel is specified by the BorderStyle property.

See Also

Code Examples