color on xbrowse Box

Post Reply
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

color on xbrowse Box

Post by Silvio.Falconi »

I have this color on cell

Image

But I set
:bClrSelFocus := { || {0,RGB(204,242,255)}}
:bClrRowFocus := { || {0,RGB(204,242,255) }}

then when I select a cell it change with my color
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
Antonio Linares
Site Admin
Posts: 42268
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: color on xbrowse Box

Post by Antonio Linares »

Dear Silvio,

Checking it with Mr. Rao
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Re: color on xbrowse Box

Post by Silvio.Falconi »

Antonio Linares wrote:Dear Silvio,

Checking it with Mr. Rao
I think if I set :SetStyle( 2018 ) then this automatically imposes certain colors even if I then go and change them
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
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: color on xbrowse Box

Post by nageswaragunupudi »

Code: Select all | Expand

:bClrSelFocus := { || {0,RGB(204,242,255)}}
Selected cell is painted with oBrw:bClrSelFocus only when the Browse has focus.

When the browse does not have focus, it is painted with oBrw:bClrSel (not oBrw:bClrSelFocus).
Default value of oBrw:bClrSel is

Code: Select all | Expand

::bClrSel      := {|| { GetSysColor( COLOR_INACTIVECAPTIONTEXT ), GetSysColor( COLOR_INACTIVECAPTION )} }
This is the color of what you see in the screenshot above.

If you want a different color, set the color to oBrw:bClrSel.
Regards

G. N. Rao.
Hyderabad, India
Post Reply