4D v13.4

OBJECT SET FONT SIZE

Home

 
4D v13.4
OBJECT SET FONT SIZE

OBJECT SET FONT SIZE 


 

OBJECT SET FONT SIZE ( {* ;} object ; size ) 
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)
size  Longint in Font size in points

OBJECT SET FONT SIZE sets the form objects specified by object to be displayed using the font size you pass in size.

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 size is any integer between 1 and 255. If the exact font size does not exist, characters are scaled.

The area for the object, as defined in the form, must be large enough to display the data in the new size. Otherwise, the text may be truncated or not displayed at all.

The following example sets the font size for a variable named vtInfo:

 OBJECT SET FONT SIZE(vtInfo;14)

The following example sets the font size for all the form objects whose name starts with "hl":

 OBJECT SET FONT SIZE(*;"hl@";14)

 
PROPERTIES 

Product: 4D
Theme: Object Properties
Number: 165

 
INDEX

Alphabetical list of commands

 
HISTORY 

Modified: 4D v6
Renamed: 4D v12

 
SEE ALSO 

OBJECT Get font size
OBJECT SET FONT
OBJECT SET FONT STYLE