File: wx175.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (87 lines) | stat: -rw-r--r-- 3,413 bytes parent folder | download
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<HTML>
<head><title>wxPreviewFrame</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxpreviewframe"></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="wx174.htm#wxpreviewcontrolbar"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx176.htm#wxprintdata"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxPreviewFrame</H2>
<P>
This class provides the default method of managing the print preview interface.
Member functions may be overridden to replace functionality, or the
class may be used without derivation.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx104.htm#wxframe">wxFrame</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>
&lt;wx/print.h&gt;<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx173.htm#wxpreviewcanvas">wxPreviewCanvas</A>, <A HREF="wx174.htm#wxpreviewcontrolbar">wxPreviewControlBar</A>,
<A HREF="wx181.htm#wxprintpreview">wxPrintPreview</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic663">wxPreviewFrame::wxPreviewFrame</A><BR>
<A HREF="#topic664">wxPreviewFrame::~wxPreviewFrame</A><BR>
<A HREF="#topic665">wxPreviewFrame::CreateControlBar</A><BR>
<A HREF="#topic666">wxPreviewFrame::CreateCanvas</A><BR>
<A HREF="#topic667">wxPreviewFrame::Initialize</A><BR>
<A HREF="#topic668">wxPreviewFrame::OnCloseWindow</A><BR>
<P>

<HR>
<A NAME="topic663"></A>
<H3>wxPreviewFrame::wxPreviewFrame</H3>
<P>
<B></B> <B>wxPreviewFrame</B>(<B>wxPrintPreview* </B><I>preview</I>, <B>wxFrame* </B><I>parent</I>, <B>const wxString&amp; </B><I>title</I>,
 <B>const wxPoint&amp; </B><I>pos = wxDefaultPosition</I>, <B>const wxSize&amp; size </B><I>size = wxDefaultSize</I>,
 <B>long</B><I> style = wxDEFAULT_FRAME_STYLE</I>, <B>const wxString&amp; </B><I>name = "frame"</I>)<P>
Constructor. Pass a print preview object plus other normal frame arguments.<P>

<HR>
<A NAME="topic664"></A>
<H3>wxPreviewFrame::~wxPreviewFrame</H3>
<P>
<B></B> <B>~wxPreviewFrame</B>()<P>
Destructor. <P>

<HR>
<A NAME="topic665"></A>
<H3>wxPreviewFrame::CreateControlBar</H3>
<P>
<B>void</B> <B>CreateControlBar</B>()<P>
Creates a wxPreviewControlBar. Override this function to allow
a user-defined preview control bar object to be created.<P>

<HR>
<A NAME="topic666"></A>
<H3>wxPreviewFrame::CreateCanvas</H3>
<P>
<B>void</B> <B>CreateCanvas</B>()<P>
Creates a wxPreviewCanvas. Override this function to allow
a user-defined preview canvas object to be created.<P>

<HR>
<A NAME="topic667"></A>
<H3>wxPreviewFrame::Initialize</H3>
<P>
<B>void</B> <B>Initialize</B>()<P>
Creates the preview canvas and control bar, and calls
wxWindow::MakeModal(TRUE) to disable other top-level windows
in the application.<P>
This function should be called by the application prior to
showing the frame.<P>

<HR>
<A NAME="topic668"></A>
<H3>wxPreviewFrame::OnCloseWindow</H3>
<P>
<B>void</B> <B>OnCloseWindow</B>(<B>wxCloseEvent&amp;</B><I> event</I>)<P>
Enables the other frames in the application, and deletes the print preview
object, implicitly deleting any printout objects associated with the print
preview object.<P>

</BODY></HTML>