DrawStyle - Name Property

The name of the Drawstyle

Member of DrawStyle (PRIM_THM.DrawStyle)

Data Type - String

Details

The Name property identifies the DrawStyle.
 
Unlike most components, where the name is simply the unique name of the variable instance, the Name of a DrawStyle is also used to define its use.
 
Most user defined DrawStyles will have abstract names such as Heading1, Subtitle or Emphasis. However, some names already have a predefined meaning such as PushButton, ListItem and ListColumn. DrawStyles with these names are automatically applied to controls as and when appropriate. The full list of predefined names is below.
 
This naming sytem allows for simple overriding of default behaviors. For example, if you define a DrawStyle called ListColumn and set the Fill color to red, all column headings will automatically turn red.

Allowed Values

Enum Value Description
DarkTitle Abstract - Fill:Theme700 Text:White
Edit Applied to all edit basec controls e.g. Field, Spin edit
Emphasis Abstract - Text:Italicized
ErrorPopup Applied to contextual message popups
Heading1 Abstract - Text:Theme900 160% of base font size
Heading2 Abstract - Text:Theme900 140% of base font size
Heading3 Abstract - Text:Theme900 120% of base font size
Image Applied to all Image controls
LightTitle Abstract - Fill:Theme300 Text:Theme700
List Applied to all list controls e.g. List and Tree View
ListColumn Applied to all list column headers e.g. List and Tree View
ListItem Applied to all list items e.g. List and Tree View
MediumTitle Abstract - Fill:Theme500 Text:White
MenuBar Applied to all Menu Bar controls
MenuItem Applied to all Menu Item controls
Panel Applied to all Panels
Popup Applied to all Popup Panels
PopupMenu Applied to all Popup Panels when used as menu item
PushButton Applied to all Push Buttons
Strong Abstract - Text:Bold
Tab Applied to all Tab Folders
Title Abstract - Text:Theme900 250% of base font size
Toolbar Applies a toolbar background to the control
ToolbarButton Applied to all Toolbar Buttons

                
                

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020