Xbrowse color group

Xbrowse color group

Postby Silvio.Falconi » Sat Apr 02, 2022 8:27 am

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 view
: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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: Xbrowse color group

Postby nageswaragunupudi » Sat Apr 02, 2022 1:48 pm

for n := 1 to 7
oBrw:aCols[ n ]:bClrStd := ...
next
for n := 8 to 12
oBrw:aCols[ n ]:bClrStd := ...
next

and so on ...
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10619
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Xbrowse color group

Postby Silvio.Falconi » Sat Apr 02, 2022 3:28 pm

thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 50 guests