ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Font functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
FontSelect (Function)
In french: PoliceSelect
Opens the standard Windows font selection window by selecting the specified font.
The font selected by the user can be used:
Example
// Création d'une police par défaut
PDéfaut is Font = FontCreate("Arial", 12)
// Utilisation d'une variable pour stocker la police de l'utilisateur
PUtilisateur is Font
// Demande à l'utilisateur de modifier sa police
FontSelect(PUtilisateur, True, PDéfaut)
Syntax

Opening the font picker by specifying a default font Hide the details

<Result> = FontSelect(<Selected font> [, <Option> [, <Default font>]])
<Result>: Boolean
  • True if a font was selected by the user,
  • False otherwise (the "Cancel" button was clicked by the user).
<Selected font>: Font
Name of the Font variable that will contain the characteristics of the font selected by the user.
<Option>: Optional boolean
  • True to display the advanced options of the font (underlining, color),
  • False to avoid displaying these options in the font picker.
<Default font>: Optional Font variable
Name of the Font variable that corresponds to the characteristics of the font to select by default in the font picker of Windows.

Opening the font picker by specifying all the characteristics of the default font Hide the details

<Result> = FontSelect(<Selected font> [, <Option> [, <Font name> [, <Size> [, <Style> [, <Color>]]]]])
<Result>: Boolean
  • True if a font was selected by the user,
  • False otherwise (the CANCEL button was clicked by the user).
<Selected font>: Font
Name of the Font variable that will contain the characteristics of the font selected by the user. If only this parameter is specified, the default font selected in the font picker will have the characteristics of this font.
<Option>: Optional boolean
  • True to display the advanced options of the font (underlining, color),
  • False to avoid displaying these options in the font picker.
<Font name>: Optional character string
Name of the font selected by default in the font picker. This name must correspond to one of the fonts installed on the current computer.
<Size>: Optional integer
Size of the font selected by default in the font picker. This size is expressed in picas (1 Pica = 0.353 mm).
<Style>: Optional Integer constant (or combination of constants)
Attributes of the font selected by default:
iBoldBold font
iItalicItalic font
iNormalStandard font, without attributes
iStrikeOutStrikethrough font
iUnderlinedUnderlined font
<Color>: Optional integer
Color of the font selected by default. This color can correspond to:
Component: wd300vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help