comp • gb.form.dialog • dialog • selectfont

Dialog.SelectFont (gb.form.dialog)

Static Function SelectFont ( ) As Boolean

Calls the font standard dialog.

Returns TRUE if the user clicked on the Cancel button, and FALSE if the user clicked on the OK button.

This example sets the font of a textarea to a font selected by the user. If the user cancels the dialog then the font is not updated.

Examples

Public Sub ButtonFont_Click()
  Dialog.Font = TextAreaEdit.Font
  If Dialog.SelectFont() Then Return
  TextAreaEdit.Font = Dialog.Font
End