FONT STYLE

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.0 (Modified)


FONT STYLE ({*; }object; styles)

ParameterTypeDescription
*If specified, Object is an Object Name (String)
If omitted, Object is a Field or a Variable
objectForm ObjectObject Name (if * is specified), or
Field or Variable (if * is omitted)
stylesNumberFont style

Description

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:

ConstantTypeValue
PlainLong Integer0
BoldLong Integer1
ItalicLong Integer2
UnderlineLong Integer4
OutlineLong Integer8
ShadowLong Integer16
CondensedLong Integer32
ExtendedLong Integer64

Note: On Windows, only the Plain, Bold, Italic and Underline styles are available.

Examples

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

   FONT STYLE (bAddNew; Bold + Italic)

2. This example sets the font style to Plain for all form objects with names starting with "vt":


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

See Also

FONT, FONT SIZE.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next