4D v14.3

OBJECT SET FONT STYLE

Home

 
4D v14.3
OBJECT SET FONT STYLE

OBJECT SET FONT STYLE 


 

OBJECT SET FONT STYLE ( {* ;} object ; styles ) 
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)
styles  Longint in Font style

OBJECT SET FONT STYLE sets the form objects specified by object to be displayed using the font style you pass in styles.

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.

You pass in styles a sum of the constants describing your font style selection. The following are the predefined constants provided by 4D:

Constant Type Value
Bold Longint 1
Italic Longint 2
Plain Longint 0
Underline Longint 4

This example sets the font style for a button named bAddNew. The font style is set to bold italic:

 OBJECT SET FONT STYLE(bAddNew;Bold+Italic)

This example sets the font style to Plain for all form objects with names starting with “vt”:

 OBJECT SET FONT STYLE(*;"vt@";Plain)

 
PROPERTIES 

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

 
HISTORY 

Modified: 4D v6
Renamed: 4D v12

 
SEE ALSO 

OBJECT Get font style
OBJECT SET FONT
OBJECT SET FONT SIZE
Programming Notes
SET LIST ITEM PROPERTIES

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)

Inherited from : FONT STYLE ( 4D v11 SQL Release 6)