Does this work for you?

$lDesiredFontColor:=0x00CCCCCC  //Or whatever grey you are after
OBJECT GET RGB COLORS(*;Widget;$lForeground;$lBackground;$lAltBackground)
OBJECT SET RGB COLORS(*;Widget;$lDesiredFontColor;$lBackground;$lAltBackground)

Then you don’t have to guess what the background scheme is.

--
Cannon.Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<[email protected]>
<www.synergyfarmsolutions.com>


> On Sep 23, 2017, at 2:34 PM, Sannyasin Siddhanathaswami via 4D_Tech 
> <[email protected]> wrote:
> 
> How do I change the font color of a listbox column and not change the 
> background color? I’d like the fonts in certain columns to be “Dark grey”, 
> and have rows alternate colors.
> 
> This changes the font color to Dark grey (but forces the background of the 
> column to white:
> OBJECT SET COLOR([CC_Transactions]Date_;-Dark grey)
> 
> This sets alternate row colors like macOS Finder (but makes all the font 
> colors black):
> OBJECT SET RGB COLORS(*;"CCTransactionsLB";Foreground color;Background 
> color;0x00F5F5F5)
> 
> Each one overrides the other.
> 
> What am I missing?
> 

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to