color on xbrowse Box

color on xbrowse Box

Postby Silvio.Falconi » Mon Oct 28, 2024 6:20 pm

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
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: color on xbrowse Box

Postby Antonio Linares » Tue Oct 29, 2024 7:55 am

Dear Silvio,

Checking it with Mr. Rao
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: color on xbrowse Box

Postby Silvio.Falconi » Tue Oct 29, 2024 9:05 am

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
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: color on xbrowse Box

Postby nageswaragunupudi » Tue Oct 29, 2024 10:17 pm

Code: Select all  Expand view  RUN
: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 view  RUN
::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
User avatar
nageswaragunupudi
 
Posts: 10656
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Enrico Maria Giordano, Google [Bot] and 38 guests