Using v17: I want to set the background colours of listbox headers according to what type of data is in the column. So if it's the key field, for example, I want black text on a green background. Otherwise, I want yellow text on a red background. Here's my code:
*Case of* *:* ($isKey) $ColorNumber:=-(Black+(256*Green)) *Else* $ColorNumber:=-(Yellow+(256*Red)) *End case* *OBJECT SET COLOR*($pHeaderButton->;$ColorNumber) What i get is either black or yellow text, but the background is always white. How do I get the background colour to work? Pat -- ************************************************* CatBase - Top Dog in Data Publishing tel: +44 (0) 207 118 7889 w: http://www.catbase.com skype: pat.bensky ************************************************* ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

