PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Font color
  • Font of report controls
  • Limitations
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Font property is used to
  • Get the identifier of the font used in a control in a report, page or window.
  • Change the font used in a control in a report, page or window.
Example
MyFont is Font
MyFont = FontCreate("Arial", 12, iBold)
EDT_Address.Font = MyFont
Syntax

Getting the font used in a control Hide the details

<Result> = <Control used>.Font
<Result>: Font
Font variable containing the characteristics of the font used in the specified control.
<Control used>: Control name
Name of the control to be used.

Modifying the font used in a control Hide the details

<Control used>.Font = <New font>
<Control used>: Control name
Name of the control to be used.
<New font>: Font
Font variable containing the characteristics of the new font to be used in the specified control. The font characteristics have been defined by FontCreate or via the properties for font management.
Remarks

Font color

The color of the font can be defined in its attributes:
  • by FontCreate. For example:
    FontCreate("Arial", 12, iBold, DarkYellow)
  • by the definition of a font. Example:
    MyFont is Font
    MyFont.Color = LightRed

Font of report controls

The following properties allow you to handle the fonts used in the report controls:

Limitations

Reports and Queries In a report, the Font property can be used on:
  • a Static control.
  • a Calculated control.
  • a Link control.
  • a Preset control.
  • an edit control.
In a window or page, the Font property can be used on:
  • a Static control,
  • an edit control,
  • a Button control,
  • a Check Box control,
  • a Radio Button control,
  • a List Box control,
  • a row in a list box (including listview) or in a combo box,
  • Versions 19 and later
    a Table control,
    New in version 19
    a Table control,
    a Table control,
  • Versions 19 and later
    a TreeView Table control,
    New in version 19
    a TreeView Table control,
    a TreeView Table control,
  • a table cell,
  • a table column,
  • a formatted display control,
  • an HTML control,
  • a Combo Box control,
  • a Link control,
  • an HTML Static control,
  • a Pager control,
  • a site map path,
  • a TreeView control,
  • a menu,
  • a cell in a status bar.
Related Examples:
Font property Unit examples (WEBDEV): Font property
[ + ] This example presents the use of the..Font properties and the use of the FontCreate function.
}}
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment