Container - PrivateStyle Property

Style applied to the control but not inherited by child controls

Member of Container (PRIM_CPST)

Data Type - PRIM_VS.Style - Style used to define foreground and background appearance


The PrivateStyle property 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 PrivateStyle the group box can step out of the style inheritance chain.

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020