PrivateStyle Property

Visual LANSA Feature

PrivateStyle Property

DirectX Only

Denotes the Style (#Prim_vs.Style) to be applied to this control only.

Styles are normally inherited by child controls, depending on the VisualStyleOfParent property.  PrivateStyle allows composite controls to have their own styles without affecting the appearance of child controls.

For example, a group box may need to have a bold text but normally, applying bold to a composite directly will cause the both the caption and contents to become bold.  By specifying this as a Private Style the group box can step out of the style inheritance chain.