Page 1 of 1

Xbrowse color group

Posted: Sat Apr 02, 2022 8:27 am
by Silvio.Falconi
I have the xbrowse with
oApp():oGrid:bClrStd := { || { CLR_BLACK, If( oApp():oGrid:KeyNo % 2 == 0, RGB(160,225,255), CLR_WHITE ) } }
this is the pijama effect
I need to colorize all columns but in different groups
I have these groups

Code: Select all | Expand

:SetGroupHeader( "Estrazione",  1,  2)
                      :SetGroupHeader( "Bari",        3,  7 )
                      :SetGroupHeader( "Cagliari",    8, 12 )
                      :SetGroupHeader( "Firenze",    13, 17 )
                      :SetGroupHeader( "Genova",     18, 22 )
                      :SetGroupHeader( "Milano",     23, 27 )
                      :SetGroupHeader( "Napoli",     28, 32 )
                      :SetGroupHeader( "Palermo",    33, 37 )
                      :SetGroupHeader( "Roma",       38, 42 )
                      :SetGroupHeader( "Torino",     43, 47 )
                      :SetGroupHeader( "Venezia",    48, 52 )
                      :SetGroupHeader( "Nazionale",  53, 57 )


how could I do to color the Columns in different colors depending on the group?
example from col 3 to col 7 light gray

Re: Xbrowse color group

Posted: Sat Apr 02, 2022 1:48 pm
by nageswaragunupudi
for n := 1 to 7
oBrw:aCols[ n ]:bClrStd := ...
next
for n := 8 to 12
oBrw:aCols[ n ]:bClrStd := ...
next

and so on ...

Re: Xbrowse color group

Posted: Sat Apr 02, 2022 3:28 pm
by Silvio.Falconi
thanks