Control - ThemeDrawStyle Property

Name of the Theme DrawStyle to be applied to the control

Member of Control (PRIM_CTRL)

Data Type - Unicode String

Details

The ThemeDrawStyle property is the name of the DrawStyle to be applied to the control.
 
ThemeDrawStyle uses simple name matching to determine the appearance of the control. If the name specified cannot be found at run time, the control will revert to its fallback appearance defined by the Theme applied to the WebPage or Form. As the name is softcoded, a change of Theme at application level can result in a completely different appearance.
 
There are a number of prefined DrawStyle names that automatically exist at runtime to match certain controls and features e.g. PushButton, ListItem, ListColumn and Edit etc.
 
Refer to the DrawStyle Name property for further information.
 
The ThemeDrawStyle property is typically managed by the IDE designer.

Example

In this example, the three buttons are using 3 different ThemeDrawStyles. The first two button use DarkTitle and MediumTitle, which are predefined and are therefore always available. The third button uses DrawStyleXXX which in this scenario is undefined. The button therefore adopts the default appearance for buttons in this theme.
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(600) Width(824) Theme(#SYS_THEME<2015Indigo>)
 
   Define_Com Class(#PRIM_PHBN) Name(#Button1) Caption('Button1') Displayposition(3) Left(80) Parent(#COM_OWNER) Tabposition(3) Top(46) Height(51) Width(129) Themedrawstyle('DarkTitle')
   Define_Com Class(#PRIM_PHBN) Name(#Button2) Caption('Button2') Displayposition(2) Left(240) Parent(#COM_OWNER) Tabposition(2) Top(48) Height(51) Width(129) Themedrawstyle('MediumTitle')
   Define_Com Class(#PRIM_PHBN) Name(#Button3) Caption('Button3') Displayposition(1) Left(400) Parent(#COM_OWNER) Tabposition(1) Top(48) Height(51) Width(129) Themedrawstyle('DrawStyleXXX')
 
End_Com

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2