PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Font color
  • Font of report controls
  • Fonts of page controls
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..Font is used to:
  • Find out the identifier of the font used in a control found in a report, in a page or in a window.
  • Modify the font used in a control found in a report, in a page or in a window.
Versions 15 and later
WINDEVJava This property is now available for the Java applications.
New in version 15
WINDEVJava This property is now available for the Java applications.
WINDEVJava This property is now available for the Java applications.
Versions 17 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store Apps mode.
iPhone/iPad This property is now available for the report controls in the iPhone/iPad applications.
New in version 18
Universal Windows 10 App This property is now available in Windows Store Apps mode.
iPhone/iPad This property is now available for the report controls in the iPhone/iPad applications.
Universal Windows 10 App This property is now available in Windows Store Apps mode.
iPhone/iPad This property is now available for the report controls in the iPhone/iPad applications.
Versions 20 and later
iPhone/iPad This property is now available for the Table controls and for the table columns in the iPhone/iPad applications.
New in version 20
iPhone/iPad This property is now available for the Table controls and for the table columns in the iPhone/iPad applications.
iPhone/iPad This property is now available for the Table controls and for the table columns in the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
MyFont is Font
MyFont = FontCreate("Arial", 12, iBold)
EDT_Address..Font = MyFont
Syntax

Finding out the font used in a control Hide the details

<Result> = <Control Name>..Font
<Result>: Font
Font variable containing the characteristics of the font used in the specified control.
<Control Name>: Character string (with or without quotes)
Name of control to use.

Modifying the font used in a control Hide the details

<Control Name>..Font = <New Font>
<Control Name>: Character string (with or without quotes)
Name of control to use.
<New Font>: Font
Font variable containing the characteristics of the new font that will 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:
WEBDEV - Server code

Fonts of page controls

We recommend that you use a series of fonts separated by commas as font name. For example: "Arial, Helvetica, Sans-serif", "Time New Roman, Times, Serif", ...
..Font cannot be used to retrieve or modify the CSS sizes in addition to the absolute sizes. See the help page about ..FontSize for more details.

Limits

WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 App In a report, ..Font can be used on:
  • a Static control.
  • a Calculated control.
  • a Link control.
  • a Preset control.
  • an edit control.
  • an Item control.
In a window and in a page, ..Font 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,
    WEBDEV - Server code This property is available in read-only.
  • 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