1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
<HTML>
<head><title>wxFontDialog</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxfontdialog"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx101.htm#wxfontdata"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx103.htm#wxfontlist"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxFontDialog</H2>
<P>
This class represents the font chooser dialog.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx71.htm#wxdialog">wxDialog</A><BR>
<A HREF="wx260.htm#wxwindow">wxWindow</A><BR>
<A HREF="wx85.htm#wxevthandler">wxEvtHandler</A><BR>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/fontdlg.h><P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx291.htm#wxfontdialogoverview">Overview</A>, <A HREF="wx101.htm#wxfontdata">wxFontData</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic404">wxFontDialog::wxFontDialog</A><BR>
<A HREF="#topic405">wxFontDialog::~wxFontDialog</A><BR>
<A HREF="#topic406">wxFontDialog::GetFontData</A><BR>
<A HREF="#topic407">wxFontDialog::ShowModal</A><BR>
<P>
<HR>
<A NAME="topic404"></A>
<H3>wxFontDialog::wxFontDialog</H3>
<P>
<B></B> <B>wxFontDialog</B>(<B>wxWindow* </B><I>parent</I>, <B>wxFontData* </B><I>data = NULL</I>)<P>
Constructor. Pass a parent window, and optionally a pointer to a block of font
data, which will be copied to the font dialog's font data.<P>
<HR>
<A NAME="topic405"></A>
<H3>wxFontDialog::~wxFontDialog</H3>
<P>
<B></B> <B>~wxFontDialog</B>()<P>
Destructor.<P>
<HR>
<A NAME="topic406"></A>
<H3>wxFontDialog::GetFontData</H3>
<P>
<B>wxFontData&</B> <B>GetFontData</B>()<P>
Returns the <A HREF="wx101.htm#wxfontdata">font data</A> associated with the font dialog.<P>
<HR>
<A NAME="topic407"></A>
<H3>wxFontDialog::ShowModal</H3>
<P>
<B>int</B> <B>ShowModal</B>()<P>
Shows the dialog, returning wxID_OK if the user pressed Ok, and wxID_CANCEL
otherwise.<P>
If the user cancels the dialog (ShowModal returns wxID_CANCEL), no font will be
created. If the user presses OK (ShowModal returns wxID_OK), a new wxFont will
be created and stored in the font dialog's wxFontData structure.<P>
</BODY></HTML>
|