Page 1 of 1

ENV$("COLOR.HIGHLIGHT")

Posted: Tue Nov 10, 2009 4:10 pm
by bluesfannoz
ENV$("COLOR.HIGHLIGHT") is "#B5D5FF"

Ok I can see this Value

What can I do with it? Can I change it within BR?

Posted: Wed Nov 11, 2009 6:40 am
by John
you can't change it, but you can use it to change BR by comining it into [[attribute]] [[statements]].

Posted: Wed Nov 11, 2009 10:25 am
by GomezL
In the environment variables there are a series of "COLOR." fields. These are provided by BR to let you know what colors the user has selected within their windows Theme.

COLOR.HIGHLIGHT is there color that windows uses when highlighting text.

Our application uses these environment variable to copy the colors to our own attribute. For example

exe 'config attribute [L]R/'&ENV$("COLOR.HIGHLIGHTTEXT")&":"&ENV$("COLOR.HIGHLIGHT")

The above statement would assign the [L] or "LightBar" attribute to use the Windows Highlight colors.