Skip to content

peControlStyle - cCJMenuItem

Specifies if the control's icon and or caption is displayed.

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer peControlStyle
Access Type Syntax
Read Access: Get peControlStyle to IntegerVariable
Write Access: Set peControlStyle to IntegerVariable/Value

Description

peControlStyle allows you to specify how the control is displayed. You can choose to display the control's icon, its caption, its icon plus caption or its icon, caption and description. The following values are allowed:

Constant Meaning
xtpButtonAutomatic Specifies an automatic button style. This makes the best choice for the control
xtpButtonCaption Specifies the caption button style.
xtpButtonIcon Specifies an icon button style.
xtpButtonIconAndCaption Specifies both the caption and icon button styles.
xtpButtonIconAndCaptionBelow Specifies to display both the caption and icon. The caption will be drawn under the icon. This can be used with toolbar items.
xtpButtonCaptionAndDescription Specifies for popup bars to draw description under the caption. This should only be used with popup menu items.

Default is xtpButtonAutomatic

Col 1 Col 2
Note: This is a design-time only property. This property is applied when the COM control is created. You should not change this property after the control is created. Changing the property will have no effect on the existing control.

See Also

peControlType