Setting the Theme of All Forms

Visual LANSA

Setting the Theme of All Forms

Instead of individually setting each form to be theme-enabled using the forms' ThemeStyle=Themed property, you can set the default behavior of all Forms using the ThemedForms property of #Sys_Appln.

 

False

Default

     

True

All forms in the application will use the theme specified by #Sys_Appln.Theme property.

 

 

To do this place the following code in the application startup code:

  

#Sys_Appln.Theme := Shell

#Sys_Appln.ThemedForms := True

  

Note that enabling themes in all forms in a Visual LANSA application may not produce the appearance that you want.

For example, in the Microsoft Office applications, only the main form is generally theme-enabled whereas all other dialogs are not (the main application appears with a Blue theme but its child dialogs still appear Grey). For this reason you should individually evaluate forms to see if they should use a theme.

Ý 6.29.4 Themes