PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
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
// Asks 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:
iStrikeOutStrikeout font
iBoldBold font
iItalicItalic font
iNormalStandard font, without attributes
iUnderlinedUnderlined font
<Color>: Optional integer
Color of the font selected by default. This color corresponds to:
Components
WINDEVReports and Queries wd230vm.dll
Linux wd230vm.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment