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 64 65 66 67 68 69 70 71
|
<HTML>
<head><title>wxPageSetupDialog</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxpagesetupdialog"></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="wx161.htm#wxpagesetupdata"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx163.htm#wxpaintdc"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxPageSetupDialog</H2>
<P>
This class represents the page setup common dialog. The page setup dialog is standard from
Windows 95 on, replacing the print setup dialog (which is retained in Windows and wxWindows
for backward compatibility). On Windows 95 and NT 4.0 and above, the page setup dialog is
native to the windowing system, otherwise it is emulated.<P>
The page setup dialog contains controls for paper size (A4, A5 etc.), orientation (landscape
or portrait), and controls for setting left, top, right and bottom margin sizes in millimetres.
The page setup dialog does not set any global information (the exception being orientation
for PostScript printing) so you need to query the <A HREF="wx161.htm#wxpagesetupdata">wxPageSetupData</A> object
associated with the dialog.<P>
Note that the OK and Cancel buttons do not destroy the dialog; this must be done by the
application.<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/printdlg.h><P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx177.htm#wxprintdialog">wxPrintDialog</A>, <A HREF="wx161.htm#wxpagesetupdata">wxPageSetupData</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic630">wxPageSetupDialog::wxPageSetupDialog</A><BR>
<A HREF="#topic631">wxPageSetupDialog::~wxPageSetupDialog</A><BR>
<A HREF="#wxpagesetupdialoggetpagesetupdata">wxPageSetupDialog::GetPageSetupData</A><BR>
<A HREF="#wxpagesetupdialogshowmodal">wxPageSetupDialog::ShowModal</A><BR>
<P>
<HR>
<A NAME="topic630"></A>
<H3>wxPageSetupDialog::wxPageSetupDialog</H3>
<P>
<B></B> <B>wxPageSetupDialog</B>(<B>wxWindow* </B><I>parent</I>, <B>wxPageSetupData* </B><I>data = NULL</I>)<P>
Constructor. Pass a parent window, and optionally a pointer to a block of page setup
data, which will be copied to the print dialog's internal data.<P>
<HR>
<A NAME="topic631"></A>
<H3>wxPageSetupDialog::~wxPageSetupDialog</H3>
<P>
<B></B> <B>~wxPageSetupDialog</B>()<P>
Destructor.<P>
<HR>
<A NAME="wxpagesetupdialoggetpagesetupdata"></A>
<H3>wxPageSetupDialog::GetPageSetupData</H3>
<P>
<B>wxPageSetupData&</B> <B>GetPageSetupData</B>()<P>
Returns the <A HREF="wx161.htm#wxpagesetupdata">page setup data</A> associated with the dialog.<P>
<HR>
<A NAME="wxpagesetupdialogshowmodal"></A>
<H3>wxPageSetupDialog::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>
</BODY></HTML>
|