Skip to main content

ControlPart Property

Sets the control's image to a dynamically sized control part.

Definition​

Property "OLE.ControlPart" as Option

Values​

This property can be set to one of the following options:

ValueDescription
"None"No control part is used (Default)
"TB Double Gripper" or "TBDG"A toolbar gripper drawn with two vertical bars
"TB Single Gripper" or "TBSG"A toolbar gripper drawn with one vertical bar
"TB Divider" or "TBD"A toolbar separator drawn vertically in the center of the contro
"TB Endcap" or "TBE"A toolbar endcap drawn vertically against the left side of the control
"TB Menu Divider" or "TBMD"A toolbar/menu divider drawn horizontally against the bottom of the control
"Divider" or "DIV"A horizontal divider with optional caption
"Vertical Divider" or "VDIV"A vertical divider without a caption

Remarks​

The ControlPart property sets the control's image to that of a dynamically sized control part. A control part is a piece of a control drawn in the window’s system colors and can be used to create controls. Any time the system colors change, the picture adapts to the new color settings. This property is useful for emulating currently unsupported window controls, such as toolbars.

important

Setting this property removes any images and borders.

The "Divider" control part looks exactly like a group box with the left, right, and bottom edges missing. This is useful for separating sections of a window without losing as much real estate.

The "Vertical Divider" control part uses the same color scheme as the Divider, but there is no caption and the divider is vertical.