Thanks, Mike, that looked so easy but I still got the pale brown until I read 
what you had written properly and took note of it! Then, of course, it worked.

Many thanks.

Understanding the hex is easy enough but what is the <compPartColor> that 
replaces the Color syntax?

Regards,
Alastair.


From: Mike Byerley 
Sent: Friday, July 20, 2012 5:28 PM
To: RBASE-L Mailing List 
Subject: [RBASE-L] - Re: Form control colours via property commands 
(v9.1.3.10428)

Convert your RGB to Hex and set it like this:

Property CompID <compPartColor> '#B6FEFE'




----- Original Message ----- 
From: "Alastair Burr" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Friday, July 20, 2012 12:13 PM
Subject: [RBASE-L] - Form control colours via property commands 
(v9.1.3.10428)


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,
Regards,
Alastair. 

Reply via email to