I found it.  It took some digging around, but, buried in a
"WhatsNewInRBASETurboV8forWindows.pdf", ca. FEB/MAR on Page 8, was this
little nugget:

   * RGB color support for the PROPERTY command for BLINKCOLOR. PROPERTY
<LabelComponentID>
     BLINKCOLOR '[R255,G0,B0]'


So, I went back to try again and, when I modified the statement to :

   PROPERTY BF4_OBLIGATED_CHANGE COLOR '[R255,G160,B128]'


Voila!  It worked.

Now, many of y'all might already know about this nuance, but I didn't.
If it helps someone else, great, because this cool little feature is
gonna' help me and some of my users.


Still having fun with these challenges,
Steve

 
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Wills,
Steve
Sent: Tuesday, June 24, 2008 1:52pm 13:52
To: RBASE-L Mailing List
Subject: [RBASE-L] - Custom Colors In Reports?

This is a follow-up to yesterday's "Which Approach to Conditionally &
Dynamically"Create" Control on Report?" question.

I have a variable in a report which is assigned a value from a field/DB
Text, vBF4_OBLIGATED_CHANGE and OBLIGATED_CHANGE, respectively.  If this
value is 0 or less, I want to change the (background) color of the
control.

Here is a block in the BEFORE GENERATE EEP:

IF (.vBF4_OBLIGATED_CHANGE) <= 0 THEN
   PROPERTY BF4_OBLIGATED_CHANGE FONT_COLOR 'BLACK'
   PROPERTY BF4_OBLIGATED_CHANGE COLOR 'YELLOW'
ELSE
   PROPERTY BF4_OBLIGATED_CHANGE FONT_COLOR 'BLACK'
   PROPERTY BF4_OBLIGATED_CHANGE COLOR 'WHITE'
ENDIF


This works.  

However, this statement does not :

   PROPERTY BF4_OBLIGATED_CHANGE COLOR 'CYAN'


Nor does :

   PROPERTY BF4_OBLIGATED_CHANGE COLOR 'LIGHT CYAN'


(Interestingly, each and every failed attempt changed the background to
green.)


Also interesting, these statements do work :

   PROPERTY BF4_OBLIGATED_CHANGE COLOR 'ActiveCaption'

   PROPERTY BF4_OBLIGATED_CHANGE COLOR 'AQUA'


So, my questions are:
1) Which colors are available for changing the background of a DB Text
in Reports?
2) Where are their "names" found/stored?
3) Can I add new colors or redefine existing, in either case using R,G,B
values?



Thanks,
Steve in Memphis




J. Stephen Wills
Program Manager, Research Informatics
Office of the Vice Chancellor for Research
University of Tennessee Health Science Center
62 S. Dunlap, Suite 400
Memphis, TN  38163
Office: 901-448-2389
FAX    : 901-448-7133


Reply via email to