Extensions Reference
Extensions Reference > exDialogs
dlgFontDialogGetBold
bool dlgFontDialogGetBold();
Retrieves whether the selected font is bold
The DLGFONTDIALOGGETSIZE function returns whether a bold type was selected during the last call to dlgFontDialog, if the user clicked OK to dismiss the dialog. This function may only be called after dlgFontDialog has been successfully dismissed using the OK button.
You may use this function as a parameter directly inside the createfont language statement.
Parameters
None
Return Value
True to indicate the user chose a bold style, otherwise False
Example Code
// Open the dialog with Arial 10pt non bold, italic selected
if(dlgFontDialog("Arial", 10, False, True) == True)
{
// Use the new font selection in a createfont call
createfont(MyFont, dlgFontDialogGetName(),
dlgFontDialogGetSize(), dlgFontDialogGetBold(),
dlgFontDialogGetItalic());
}