Standard TPanel located on the assembly panel, is commonly used as a control vessel. One advantage of the panel assembly is placed on a portion of the panel is called a panel, so that they move together with the panel. This is useful in the design stage.
Most functions Panel component in its Align property. For example, to display the title at the upper end of the form, and further assuming that want it in the middle, regardless of the user how to set the window size, simply set the Align property to alTop and Alignment property to taCenter, so the title is always in the center, is that simple .
There are many types of appearance of the panel, its appearance changed by BevelInner, BevelOuter, BorderStyle and BorderWidth properties.
Control of the main attributes TPanel
Attributes | meaning |
Alignment | Position title, there taLeftJustify (left), taCenter (center) and taRightJustify (right) |
BevelInner | Panel style bevel within the definition, there bvNone (no ramp), bvLowered (recess), bvRaised (projections), bvSpace (projections, and as bvRaised) four options |
BevelOuter | Panel slope outside the definition of style, and the same options BevelInner |
BevelWidth | Defines the width of the inner and outer ramps |
BorderStyle | Border style definition, there bsNone (rimless, default value), bsSingle (thin border) in two |
BorderWidth | Specify the border width can take any integer value |
FullRepaint | Specify when the Panel resized to redraw their own way, to True, the entire Panel including bevel border, have been redrawn, or only partially within the bevel border be redrawn |
Locked | When Panel as a toolbar OLE application using the attribute to specify whether the Panel is substituted OLE server toolbar, when is True, no substitution. |
Panel component so diverse, it takes some time to find all the possible applications.
Under view showing examples of different types of panel-style
Were tested by the above codes in Delphi7, sample Codes: different styles of the panel .rar