Page 1 of 1
color on xbrowse Box
Posted: Mon Oct 28, 2024 6:20 pm
by Silvio.Falconi
I have this color on cell
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
Re: color on xbrowse Box
Posted: Tue Oct 29, 2024 7:55 am
by Antonio Linares
Dear Silvio,
Checking it with Mr. Rao
Re: color on xbrowse Box
Posted: Tue Oct 29, 2024 9:05 am
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
Re: color on xbrowse Box
Posted: Tue Oct 29, 2024 10:17 pm
by nageswaragunupudi
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.