Visual Style (PRIM_VS)

Visual style sets fonts and colors

Ancestors - Object (PRIM_OBJT)

Details

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.

Styles

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.

Properties

NameDescription
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
DefaultDefault is the default visual style scheme
NameName identifies the component Inherited from Object (PRIM_OBJT)
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentThe 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)
StyleDefinition of foreground and background attributes to be applied to a control

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from Visual Style (PRIM_VS)
DestroyInstanceDestroyInstance 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

Febuary 18 V14SP2