TcxGroupBox

TcxGroupBox Object

Hierarchy   Properties   Methods   Events

一个分组容器控

Unit cxGroupBox Syntax

TcxGroupBox = class(TcxCustomGroupBox)


Description


它是一个容器,和Panel差不多;


TcxGroupBox Properties(属性)

TcxGroupBox   Legend

Derived from TcxCustomGroupBox    

Alignment      控件的对齐方式

CaptionBkColor      标题的背景色

PanelStyle   控件的风格



TcxCustomGroupBox.Alignment

TcxCustomGroupBox

标题的对齐方式

Syntax

type  TcxCaptionAlignment = (alTopLeft, alTopCenter, alTopRight, alBottomLeft, alBottomCenter, alBottomRight, alLeftTop, alLeftCenter, alLeftBottom, alRightTop, alRightCenter, alRightBottom, alCenterCenter);property Alignment: TcxCaptionAlignment;

Description

该属性用来改变分组框组件标题文本的位置。标题可以放在任何边框上。此外,控件的标题还可以放在其客户端区域的中心。这您可以把分组框控件作为面板控件的替代品。

如果分组框控件使用的是原生样式( Style.LookAndFeel.NativeStyle 设为真),则标题文本不能放置在右边框或左边框上,而是显示在顶部边框上。

下表列出了对齐属性的一些值:

ValueMeaningExample
alTopLeft标题文本放在顶部边缘并左对齐。
alTopCenter标题文本放在顶部边缘并居中。
alTopRight标题文本放在顶部边缘并右对齐。
alBottomLeft标题文本放在底部边缘并左对齐
alBottomCenterThe caption text is placed on the bottom edge and centered.
alBottomRightThe caption text is placed on the bottom edge and right aligned.
alLeftTopThe caption text is placed on the left edge and aligned to the top.
alLeftCenterThe caption text is placed on the left edge and centered.
alLeftBottomThe caption text is placed on the left edge and aligned to the bottom.
alRightTopThe caption text is placed on the right edge and aligned to the top.
alRightCenterThe caption text is aligned on the right edge and centered.
alRightBottomThe caption text is placed on the right edge and aligned to the bottom.
alCenterCenterThe caption text is centered within the client area of the control. Note that all borders now correspond to the edges of the control, thus making it suitable for use as a panel.To apply the panel paint style to the group box control, set the PanelStyle.Active property to True.

The default value of the Alignment property is alTopLeft.





联系电话:
020-00000000
联系电话:
020-00000000
联系电话:
020-12345678