System specific standard dialogs for getting a font specification.
![]() | PFontDialog ( PInteractor * parent, PPrintCanvas * pCanvas = NULL, PRESOURCE_ID resID = PSTD_ID_DIALOG_FONT ) Create the standard font dialog. |
![]() | ~PFontDialog () Destroy the standard font dialog. |
![]() | SetDefaultFont (const PFont & font) Set the initial font for the dialog. |
![]() | GetSelectedFont () const Get the font specification set by this dialog. |
![]() | New functions for class |
![]() | selectedFont Font specification for the dialog. |
![]() | printerCanvas Printer canvas used for font enumeration in dialog. |
Overrides from class PDialog
Overrides from class PInteractor
Overrides from class PObject
System callback functions.
System specific standard dialogs for getting a font specification.Note that unlike most dialogs, most operations such as PInteractor::Show(), PInteractorLayout::GetControl() etc may not be executed before the PModalDialog::RunModal() function has been executed. Furthermore, they are not available after PModalDialog::RunModal() has returned. This is due to the implementation on some platforms which goes to great lengths to use the actual standard font dialog for the platform.
If the print canvas is specified then that canvas is used to enumerate the possible fonts. If pCanvas is NULL then the fonts for the screen are presented.
~PFontDialog()
New functions for class
void SetDefaultFont(const PFont & font)
const PFont& GetSelectedFont() const
PFont selectedFont
PPrintCanvas* printerCanvas
Alphabetic index HTML hierarchy of classes or Java