4D v13.4

OBJECT SET FONT

Home

 
4D v13.4
OBJECT SET FONT

OBJECT SET FONT 


 

OBJECT SET FONT ( {* ;} object ; font ) 
Parameter Type   Description
Operator in If specified, Object is an Object Name (String) If omitted, Object is a Field or a Variable
object  Form object in Object Name (if * is specified), or Field or Variable (if * is omitted)
font  String, Longint in Font name or Font number

OBJECT SET FONT sets the form objects specified by object to be displayed using the font whose name or number you pass in font.

If you specify the optional * parameter, you indicate an object name (a string) in object. If you omit the optional * parameter, you indicate a field or a variable in object. In this case, you specify a field or variable reference (field or variable objects only) instead of a string. For more information about object names, see the section Object Properties.

The following example sets the font for a button named bOK:

 OBJECT SET FONT(bOK;"Arial")

The following example sets the font for all the form objects whose name contains "info":

 OBJECT SET FONT(*;"@info@";"Times")

The following example assigns the special %password font, which can be used for entry and display of “password” type fields (characters are hidden).

 OBJECT SET FONT([Users]Password;"%password")

Compatibility note:
Although it is still supported, the use of the %password font is no longer recommended. It is more appropriate to manage the entry of passwords via the FILTER KEYSTROKE command.

 
PROPERTIES 

Product: 4D
Theme: Object Properties
Number: 164

 
INDEX

Alphabetical list of commands

 
HISTORY 

Modified: 4D v6
Renamed: 4D v12

 
SEE ALSO 

FONT LIST
OBJECT Get font
OBJECT SET FONT SIZE
OBJECT SET FONT STYLE