4D v16.3

OBJECT SET FONT SIZE

Home

 
4D v16.3
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 Object Properties section.

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)



See also 

OBJECT Get font size
OBJECT SET FONT
OBJECT SET FONT STYLE
Programming Notes

 
PROPERTIES 

Product: 4D
Theme: Objects (Forms)
Number: 165

 
HISTORY 

Modified: 4D v6
Renamed: 4D v12

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)