Description

Use Panel to put an empty panel on a form. Panels have properties for providing a beveled border around the control, as well as methods to help manage the placement of child controls embedded in the panel.


Component properties

 Property

 Description

 BgColor

 Specifies the background color of the control.

 Name

 Specifies the name of the component.

 Left

 Specifies the horizontal coordinate of the left edge of a component relative to its parent.

 Top

 Specifies the Y coordinate of the upper-left corner of a control, relative to its parent or containing control in pixels.

 Width

 Specifies the horizontal size of the control in pixels.

 Height

 Specifies the vertical size of the control in pixels.

 TabOrder

 Indicates the position of the control in its parent's tab order.

 Visible

 Specifies whether the component appears onscreen.

 Anchors

 Specifies how the control is anchored to its parent. More info.



Additional properties

 Property

 Description

 AutoSize

 Specifies whether the control sizes itself automatically to accommodate its contents.

 BiDiMode

 Specifies the bi-directional mode for the component.

 BevelInner

 Specifies the cut of the inner bevel.

 BevelKind

 Specifies the control's bevel style.

 BevelOuter

 Specifies the cut of the outer bevel.

 BevelWidth

 Determines the width, in pixels, of both the inner and outer bevels of a panel.

 BorderStyle

 Determines whether the edit component has a single line border around the client area.

 BorderWidth

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

 Caption

 Specifies a text string that identifies the control to the user.

 Constraints

 Specifies the size constraints for the component.  It makes sense when using the Anchors property.

 Cursor

 Specifies the image used to represent the mouse pointer when it passes into the region covered by the component.

 Enabled

 Controls whether the component responds to mouse and keyboard events.

 Font → Color

 Specifies the font color to use when displaying the text.

 Font → Name

 Identifies the typeface of the font.

 Font → Size

 Specifies the height of the font in points.

 Font → Style

 Determines whether the font is normal, italic, underlined, bold, and so on.

 Hint

 Hint contains the text string that appears when the user moves the mouse over the component. The hint will be shown if the ShowHint property = True

 ShowCaption

 Specifies whether to display the caption of the panel control.

 ShowHint

 Determines whether the control displays a Help Hint when the mouse pointer rests momentarily on the component. See also property Hint

 VerticalAlignment

 Sets the vertical position of the caption.