Skip to content

Latest commit

 

History

History
178 lines (88 loc) · 3.75 KB

PyCFontDialog.md

File metadata and controls

178 lines (88 loc) · 3.75 KB

PyCFontDialog

PyCFontDialog Object

A class which encapsulates an MFC CFontDialog object. Derived from a PyCDialog object.

Methods

  • DoModal

    Displays a dialog and allows the user to make a selection. 

  • GetCurrentFont

    Returns a dictionary describing the current font. 

  • GetCharFormat

    Returns the font selection in a CHARFORMAT tuple. 

  • GetColor

    Determines the color of the selected font. 

  • GetFaceName

    Returns the face name of the selected font. 

  • GetStyleName

    Returns the style name of the selected font. 

  • GetSize

    Returns he font's size, in tenths of a point. 

  • GetWeight

    Returns the font's weight. 

  • IsStrikeOut

    Determines whether the font is displayed with strikeout. 

  • IsUnderline

    Determines whether the font is displayed with underline. 

  • IsBold

    Determines whether the font is displayed bold. 

  • IsItalic

    Determines whether the font is displayed with italic. 

int = DoModal() Displays a dialog and allows the user to make a selection.

MFC References

  • CFontDialog::DoModal

PyCFontDialog.GetCharFormat

tuple = GetCharFormat() Returns the font selection in a CHARFORMAT tuple.

MFC References

  • CFontDialog::GetCharFormat

PyCFontDialog.GetColor

int = GetColor() Determines the color of the selected font.

MFC References

  • CFontDialog::GetColor

PyCFontDialog.GetCurrentFont

dict = GetCurrentFont() Returns a dictionary describing the current font.

MFC References

  • CFontDialog::GetCurrentFont

PyCFontDialog.GetFaceName

string = GetFaceName() Returns the face name of the selected font.

MFC References

  • CFontDialog::GetFaceName

int = GetSize() Returns he font's size, in tenths of a point.

MFC References

  • CFontDialog::GetSize

PyCFontDialog.GetStyleName

string = GetStyleName() Returns the style name of the selected font.

MFC References

  • CFontDialog::GetStyleName

PyCFontDialog.GetWeight

int = GetWeight() Returns the font's weight.

MFC References

  • CFontDialog::GetWeight

int = IsBold() Determines whether the font is displayed bold.

MFC References

  • CFontDialog::IsBold

PyCFontDialog.IsItalic

int = IsItalic() Determines whether the font is displayed with italic.

MFC References

  • CFontDialog::IsItalic

PyCFontDialog.IsStrikeOut

int = IsStrikeOut() Determines whether the font is displayed with strikeout.

MFC References

  • CFontDialog::IsStrikeOut

PyCFontDialog.IsUnderline

int = IsUnderline() Determines whether the font is displayed with underline.

MFC References

  • CFontDialog::IsUnderline