Visual Style (PRIM_VS)

Visual style sets fonts and colors

Ancestors - Object (PRIM_OBJT)


A Visual Style is used to define the appearance of an application.  It defines a common style to be used and adopted by multiple components. The visual style component controls style elements such as background color and font.
Once you have created a Visual Style, you can use it as the VisualStyle in any component.
A Visual Style consists of one of more Scheme. You define more than one scheme per style only if you are creating a multilingual application and you want to use different fonts and colors for different languages.
Scheme Items are used to represent the three facets of a Scheme - Captions, Values and Titles. Visual Style Items are where you define the colors and fonts to be used.
Visual Styles do not have complete control over an application appearance, with some features such as a title bars, scroll bars, and menus adopt colours based on operating system values.


For modern LANSA applications running under DirectX, Visual Styles have been superseded and should not be used.
Applications running in the browser do not support Visual Styles.
The use of Themes and Styles is recommended.


Name Description
ComponentClassName ComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembers ComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternName ComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTag Generic space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentType ComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeName ComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
Default Default is the default visual style scheme
Name Name identifies the component Inherited from Object (PRIM_OBJT)
Owner Owner owns this component Inherited from Object (PRIM_OBJT)
Parent The component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)
Style Definition of foreground and background attributes to be applied to a control


Name Description
CreateInstance CreateInstance is signalled when an instance of a component is created Inherited from Visual Style (PRIM_VS)
DestroyInstance DestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Visual Style (PRIM_VS)

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020