ChooseFont()
Summary
Gets a font using the Windows Font dialog box.
Syntax
fnt = ChooseFont(string initial_font, boolean scalable, string help_keyword)
| Argument | Contents |
|---|---|
| initial_font | The font initially displayed in the dialog box |
| scalable | If "True" only TrueType fonts are listed. If "False" all fonts are listed |
| help_keyword | A keyword in the help system, indicating the help topic displayed if the user presses F1 |
Returns
A string indicating the name of the chosen font.
Example
fnt = ChooseFont("Arial|Bold|8", "True", )
Error Codes
| Error Type | Meaning |
|---|---|
| Escape | The user clicked Cancel |
See Also
| Function | Summary |
|---|---|
| GetFontInfo() | Gets information about a font |
| GetFontNames() | Gets a list of the names of installed fonts |