Visual Style Language (PRIM_VSL)

Visual style language

Ancestors - Object (PRIM_OBJT)

Details

A Visual Style Language defines the Scheme to be used for a specific runtime language.
 
If the LANG being used matches the name of the Visual Style Language, that scheme will be applied to the application.
 
If not, the Default Scheme will be used.

Example

This example show two different styles, one for ENG and one for FRA.
Begin_Com Role(*EXTENDS #PRIM_VS) Default(#SCHEME)
 
   Define_Com Class(#Prim_vsl) Name(#ENG) Scheme(#SCHEME)
   Define_Com Class(#PRIM_VSS) Name(#SCHEME) Captions(#CAPTION) Titles(#CAPTION) Values(#VALUE)
   Define_Com Class(#PRIM_VSI) Name(#CAPTION) Facename('MS Sans Serif') Fontsize(8) Normbackcolor(ButtonFace) Script(Western)
   Define_Com Class(#PRIM_VSI) Name(#VALUE) Borderstyle(3DLeft) Errorbackcolor(255:96:160) Facename('MS Sans Serif') Fontsize(8) Script(Western)
 
   Define_Com Class(#Prim_vsl) Name(#FRA) Scheme(#SCHEMEFRA)
   Define_Com Class(#PRIM_VSS) Name(#SCHEMEFRA) Captions(#CAPTIONFRA) Titles(#CAPTIONFRA) Values(#VALUEFRA)
   Define_Com Class(#PRIM_VSI) Name(#CAPTIONFRA) Facename('MS Sans Serif') Fontsize(10) Normbackcolor(ButtonFace) Script(Western)
   Define_Com Class(#PRIM_VSI) Name(#VALUEFRA) Borderstyle(3DLeft) Errorbackcolor(255:96:160) Facename('MS Sans Serif') Fontsize(10) Script(Western)
 
End_Com

Properties

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)
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)
Scheme Scheme to used for the language

Events

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

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020