Purpose

.FontName allows you to specify which font is applied to certain objects.
 

Syntax

Setting:            ObjectReference.FontName = Value

Retrieving:        Variable = ObjectReference.FontName
 

Operation

ObjectReference is the Tag Name of the object
Value is a font name specified in a case-insensitive character string
Variable is an alphanumeric variable

 

Remarks

The requested value (font name) is passed to the Windows Client for translation into a suitable font for display.

The Font Name may be a logical font name that is mapped to a physical font name by the Windows Client as defined in the Application Definitions File.  The requested value may be subjected to further Font Mapping by the display subsystem or the operating system.

The retrieving command will cause the font name to be returned in the same format that it was entered.  If either the Windows Client or the operating system mapped the designated font to another font for display purposes, that display font name is not retrieved.
 

Example

To set the font used for a radio (Tag Name = McButton) in the radio group (Tag Name = CreditCardGroup) to the Times New Roman font:

CreditCardGroup.Button(McButton).FontName = "Times New Roman"


To set the font used for a box label (Tag Name = CustomerNameBox to Arial:

CustomerNameBox.FontName = "Arial"


To retrieve the font that was set for a combo box with a Tag Name = CustomerNumber:

$CUSTOMERNUMBER_FONTNAME = CustomerNumber.FontName


To retrieve the font set for a radio group (Tag Name = McButton) in the radio group (Tag Name = CreditCardGroup):

$CREDITCARDGROUPMCBUTTON_FONT = CreditCardGroup.(McButton).FontName
 

Comment on this topic

Topic ID: 510057

 
 
 

Table of Contents

Index

Glossary

-Search-

Back