|
|
|
|
|
FontSelect (Function) In french: PoliceSelect Opens the standard window for font selection and selects the specified font. The font selected by the user can be used: // 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:
| | iBold | Bold font | iItalic | Italic font | iNormal | Standard font, without attributes | iStrikeOut | Strikethrough font | iUnderlined | Underlined font |
<Color>: Optional integer Color of the font selected by default. This color can correspond to:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|