ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Font functions
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
Opens the standard window for font selection and selects the specified font.
The font selected by the user can be used:
Example
// Create a default font
DefaultF is Font = FontCreate("Arial", 12)
// Use a variable to store the user font
UserF is Font
// Ask the user to modify his font
FontSelect(UserF, True, DefaultF)
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: wd290vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help