Example:

[PlugIn]
FDRAWDLL2=RBFONT.DLL
RDRAWDLL2=RBFONT.DLL
.
.
.

OK, now that the cat is out of the bag, I have already received 
a few private e-mails to explain the new RBFONT.DLL.

The New RBFONT.DLL will be demonstrated at the 2001 R:BASE 
Developers' Conference in October and will be included in 
the 2001 Conference CD. (R:Team Goodies ...) 

So here it is ...

The new RBFONT.DLL features include the ability to use:

. Font Name
. Font Size
. Font Modifier
. Font Color
. Font Foreground Color
. Font Background Color
. Horizontal Alignment
. Vertical Alignment

RBFONT accepts a command string as follows:

StringToPrint, FontName, FontSize, FontModifiers, ForeColor, 
BackColor, HorizontalAlign, VerticalAlign

If any of the values in the string contain within them spaces 
or commas, then that value must be enclosed in double quotes.  
Double quotes must be used regardless of the R:Base current 
quote setting.

If you don't want to specify all the values, you can leave 
the ones at the end of the command string blank. They all 
have defaults as specified below. The only required value 
in the command string is StringToPrint.

Here are details about each value in the command string:

StringToPrint: 
Any string value, enclosed in double quotes if there are 
internal spaces or commas.

FontName: (Default: Arial) 
Any windows font installed on the computer.  

Examples: Tahoma, "Courier New". 

FontSize: (Default: 11)
The size in which you want the text to appear.  
Examples: 11, 72.  

FontModifiers: (Default: empty string, no modifier)
Any or all of the follow characters: B for Boldface, 
I for Italics, U for Underline, S for Strikethrough.

ForeColor: (Default: Black)
The color in which the font should be displayed. Can be 
black, blue, yellow, red, black, green, white, gray, 
fuchsia, teal, navy, maroon, lime, olive, purple, silver, 
aqua. 

BackColor: (Default: White)
The color of the field area behind the font. Can be any 
of the ForeColor color options. 

HorizontalAlign: (Default: LEFT)
How the text should be placed within the field area as 
drawn on the form or report. Can be LEFT, RIGHT, or CENTER. 
Note that you must set this option in the command string 
if you want anything other than Left alignment -- the 
option you set on the R:BASE property screen will NOT be 
respected.

VerticalAlign: (Default: TOP)
How the text should be placed within the field area as 
drawn on the form or report. Can be TOP, BOTTOM, or CENTER.

Example 01:

Assumes a column called TotalAmount in your table. Creates 
a command string that will display positive values in green 
and negative values in red boldface type.

SET VAR vColor = (IFLT(TotalAmount,0,'Red','Green'))
SET VAR vModifier = (IFLT(TotalAmount,0,'B',''))
SET VAR vFontString = +
('"'+CTXT(TotalAmount)+'",Arial,11,'+.vModifier+','+.vColor)

Complete demo with a sample application will be presented 
at the 2001 R:BASE Developers' Conference!

http://www.rbase.com/conference

Very Best Regards,

Razzak.

===================================-============================
R:BASE Developers's Conference: http://www.rbase.com/conference 
Official R:BASE List Server:    mailto:[EMAIL PROTECTED]
RBTI Events/Training:        http://www.rbase2000.com/events
R:DCC Members:               http://www.rbase2000.com/rdcc
================================================================
R:BASE, Oterro & R:Tango are registered trademarks of RBTI.
==================================-=============================

Reply via email to