4D v13.4OBJECT SET FONT |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
OBJECT SET FONT
|
OBJECT SET FONT ( {* ;} object ; font ) | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
If specified, Object is an Object Name (String) If omitted, Object is a Field or a Variable | |||||
object | Form object |
![]() |
Object Name (if * is specified), or Field or Variable (if * is omitted) | |||||
font | String, Longint |
![]() |
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")
Product: 4D
Theme: Object Properties
Number:
164
Modified: 4D v6
Renamed: 4D v12
FONT LIST
OBJECT Get font
OBJECT SET FONT SIZE
OBJECT SET FONT STYLE