List - AlternateItemThemeDrawStyle Property

ThemeDrawStyle to be applied to alternate items

Member of List (PRIM_LIST)

Data Type - Unicode String

Details

The AlternateItemThemeDrawStyle property is the name of the DrawStyle to be applied to every other list item.
 
AlternateItemThemeDrawStyle 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 AlternateItemThemeDrawStyle property is typically managed by the IDE designer.

Example

In this example, a list of twenty entries is used to demonstrate how AlternateItemThemeDrawStyle changes the appearance of the list control.
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME<2015Indigo>)

   Define_Com Class(#PRIM_LIST) Name(#List) Displayposition(1) Left(0) Parent(#COM_OWNER) Tabposition(1) Top(50) Height(439) Width(1113) Columnlines(False) Rowlines(False) Selectionstyle(All) Alternateitemthemedrawstyle('AlternateItem') Rowheight(40)
   Define_Com Class(#PRIM_LIST.String) Name(#ColumnXEMPTITLE1) Columnwidth(103) Displayposition(1) Parent(#List) Source(#xEmployeeTitle)
   Define_Com Class(#PRIM_LIST.String) Name(#ColumnXSURNAME1) Columnwidth(185) Displayposition(2) Parent(#List) Source(#xEmployeeSurname)
   Define_Com Class(#PRIM_LIST.String) Name(#ColumnXGIVENAME1) Columnwidth(220) Displayposition(3) Parent(#List) Source(#xEmployeeGivenNames)
   
   Evtroutine Handling(#Com_owner.Initialize)
   
      #xEmployeeTitle := "AaBbCcDd"
      #xEmployeeSurname := "EeFfGgHhIiJjKkLlMmNn"
      #xEmployeeGivenNames := "OoPpQqRrSsTtUuVvWwXxYyZz"
      
      Inz_List Named(#List) Num_Entrys(20)
   Endroutine
End_Com

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020