Maptitude GISDK Help

ChooseFont()

Summary

Gets a font using the Windows Font dialog box.

 

Syntax

fnt = ChooseFont(string initial_font, boolean scaleable, string help_keyword)

 

Argument Contents
initial _font The font initially displayed in the dialog box
scaleable 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

 

 

©2025 Caliper Corporation www.caliper.com