(RDMLX) Changing Table Header Colors
Posted: Mon Jul 29, 2013 12:00 pm
You can change the Font color and background color of table column headers without affecting the body of the table.
Concider the shipped LANSA example LREX004 - Using Tables. As shipped the font color of the headers are already changed to blue but if you modify the code setting up the headers to the following, the background color of the headers can be changes as well.
See the 'Specifying Colors' section in the 'Programming longRange with LANSA' guide for more information on using colors.
http://www.longrangemobile.com/docs/lan ... colors.htm
Note: Changing the background colors of LongRange Table headers will remove the color gradient effect that is visable on default headers.
Concider the shipped LANSA example LREX004 - Using Tables. As shipped the font color of the headers are already changed to blue but if you modify the code setting up the headers to the following, the background color of the headers can be changes as well.
Code: Select all
* Set up Colunm Headers
#COM_OWNER.Set_Label Name('Table1.Col%1.HEADER') Text('Name') Color(Red) Backcolor(Yellow)
#COM_OWNER.Set_Label Name('Table1.Col%2.HEADER') Text('Phone') Color(Blue) Backcolor(Yellow)
#COM_OWNER.Set_Label Name('Table1.Col%3.HEADER') Text('Address') Color(Blue) Backcolor(Yellow)
#COM_OWNER.Set_Label Name('Table1.Col%4.HEADER') Text('Start Date') Color(Blue) Backcolor(Yellow)
#COM_OWNER.Set_Label Name('Table1.Col%5.HEADER') Text('Gender') Color(Blue) Backcolor(Yellow)
See the 'Specifying Colors' section in the 'Programming longRange with LANSA' guide for more information on using colors.
http://www.longrangemobile.com/docs/lan ... colors.htm
Note: Changing the background colors of LongRange Table headers will remove the color gradient effect that is visable on default headers.