DrawStyle (PRIM_THM.DrawStyle)

A DrawStyle collects styles to be applied to a feature

Ancestors - Object (PRIM_OBJT)

Details

A Drawstyle uses one or more Styles to define the appearance of controls and list features.
 
Drawstyles are generic, allowing styles to be assigned for the normal appearance of a control as well as the MouseOver, Focus and other facets such as how it appears when Mouse down.
 
Drawstyles serve 2 purposes within a Theme.
 
Firstly, they can be used to define abstract styling concepts such as Title, Subheading or Emphasis, similar to a Word document.
 
Secondly, they are used to define the default appearance of controls such as Push Button and List simply by giving the DrawStyle the correct Name. This allows for a convenient global declaration, reducing the need for local styling when editing individual components.
 
Drawstyles defined a base appearance for a control. Local styling can be used to overlay the theme defaults.
 
Themes and drawstyles are tightly intergrated with the IDE, appearing on the Theme sheet of the ribbon, allowing for simple assignment to control as required.

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)
FocusedInactiveStyleStyle to be applied to the focus item when the control is not focus
FocusedStyleStyle applied to the control when focus
MouseOverStyleStyle applied to the control when mouse over
NameThe name of the Drawstyle
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)
PressedStyleStyle applied to the control on mouse down
SelectedInactiveStyleStyle to be applied to the control when selected but the control is not focus
SelectedStyleStyle applied to the control when selected
StyleStyle applied to the control

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from DrawStyle (PRIM_THM.DrawStyle)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from DrawStyle (PRIM_THM.DrawStyle)

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2