At 12:13 PM 7/20/2012, Alastair Burr wrote:

I have a need to change the background colour of a component (DBMemo) depending
on whether certain conditions are met.

My EEP works fine as far as changing the colour goes but I thought that it was
possible to substitute the RGB codes in place of the colour names.

The codes do seem to work but give the wrong colour!!

I checked in the Properties.pdf help and find that it lists the names of 22
background colours that are available.

Is this one of those cases where the codes cannot be substituted?

(I am using: (182, 254, 254) as the custom colour when the control is defined
which is close to Aqua but paler and is showing up as a pale-ish brown when
those codes are used in the property command to return it to my custom colour.
It happily changes correctly to RED or GREEN via the EEP.)

Thanks in advance for any insights,

Alastair,

When using the RGB colour combination, you will need to use the value as follows:

-- Example

   [R234,G234,B234]

Here are my favorite color combinations:

. [R123,G82,B41]
. [R138,G92,B47]
. [R234,G234,B234]
. [R64,G89,B57]
. [R95,G133,B84]
. [R0,G105,B155]
. [R0,G126,B187]
. [R247,G204,B91]
. [R250,G223,B154]
. [R169,G176,B209]
. [R198,G202,B225]
. [R254,G224,B52]
. [R254,G233,B114]
. [R200,G154,B121]
. [R255,G102,B0]
. [R160,G160,B223]
. [R160,G160,B233]
. [R209,G194,B186]
. [R255,G102,B0]

If you are using the latest and greatest version of R:BASE 9.1 or 9.5,
you may also take advantage of all possible colour combinations, as
well as the option to pick the colour and return the value as Color,
Name, Integer Value, or RGB value.

Here's how:

Press [F3] Data Dictionary key | Colors ...

Notice the coooool illustration of all colors and available options.

Have fun!

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase

Reply via email to