1wxPreviewFrame(3)          Erlang Module Definition          wxPreviewFrame(3)
2
3
4

NAME

6       wxPreviewFrame - Functions for wxPreviewFrame class
7

DESCRIPTION

9       This  class  provides  the default method of managing the print preview
10       interface. Member functions may be overridden to replace functionality,
11       or the class may be used without derivation.
12
13       See: wxPreviewCanvas, wxPreviewControlBar, wxPrintPreview
14
15       This class is derived (and can use functions) from: wxFrame wxTopLevel‐
16       Window wxWindow wxEvtHandler
17
18       wxWidgets docs: wxPreviewFrame
19

DATA TYPES

21       wxPreviewFrame() = wx:wx_object()
22

EXPORTS

24       new(Preview, Parent) -> wxPreviewFrame()
25
26              Types:
27
28                 Preview = wxPrintPreview:wxPrintPreview()
29                 Parent = wxWindow:wxWindow()
30
31       new(Preview, Parent, Options :: [Option]) -> wxPreviewFrame()
32
33              Types:
34
35                 Preview = wxPrintPreview:wxPrintPreview()
36                 Parent = wxWindow:wxWindow()
37                 Option =
38                     {title, unicode:chardata()} |
39                     {pos, {X :: integer(), Y :: integer()}} |
40                     {size, {W :: integer(), H :: integer()}} |
41                     {style, integer()}
42
43              Constructor.
44
45              Pass a print preview object plus other normal  frame  arguments.
46              The  print preview object will be destroyed by the frame when it
47              closes.
48
49       destroy(This :: wxPreviewFrame()) -> ok
50
51              Destructor.
52
53       createControlBar(This) -> ok
54
55              Types:
56
57                 This = wxPreviewFrame()
58
59              Creates a wxPreviewControlBar.
60
61              Override this function to allow a user-defined  preview  control
62              bar object to be created.
63
64       createCanvas(This) -> ok
65
66              Types:
67
68                 This = wxPreviewFrame()
69
70              Creates a wxPreviewCanvas.
71
72              Override  this  function  to allow a user-defined preview canvas
73              object to be created.
74
75       initialize(This) -> ok
76
77              Types:
78
79                 This = wxPreviewFrame()
80
81              Initializes the frame elements and prepares for showing it.
82
83              Calling this method is  equivalent  to  calling  InitializeWith‐
84              Modality()  (not implemented in wx) with wxPreviewFrame_AppModal
85              argument, please see its documentation for more details.
86
87              Please notice that this function is virtual mostly for backwards
88              compatibility only, there is no real need to override it as it's
89              never called by wxWidgets itself.
90
91       onCloseWindow(This, Event) -> ok
92
93              Types:
94
95                 This = wxPreviewFrame()
96                 Event = wxCloseEvent:wxCloseEvent()
97
98              Enables any disabled frames in the application, and deletes  the
99              print  preview  object, implicitly deleting any printout objects
100              associated with the print preview object.
101
102
103
104wxWidgets team.                    wx 2.2.2                  wxPreviewFrame(3)
Impressum