1wxPreviewControlBar(3) Erlang Module Definition wxPreviewControlBar(3)
2
3
4
6 wxPreviewControlBar - Functions for wxPreviewControlBar class
7
9 This is the default implementation of the preview control bar, a panel
10 with buttons and a zoom control.
11
12 You can derive a new class from this and override some or all member
13 functions to change the behaviour and appearance; or you can leave it
14 as it is.
15
16 See: wxPreviewFrame, wxPreviewCanvas, wxPrintPreview
17
18 This class is derived (and can use functions) from: wxPanel wxWindow
19 wxEvtHandler
20
21 wxWidgets docs: wxPreviewControlBar
22
24 wxPreviewControlBar() = wx:wx_object()
25
27 new(Preview, Buttons, Parent) -> wxPreviewControlBar()
28
29 Types:
30
31 Preview = wxPrintPreview:wxPrintPreview()
32 Buttons = integer()
33 Parent = wxWindow:wxWindow()
34
35 new(Preview, Buttons, Parent, Options :: [Option]) ->
36 wxPreviewControlBar()
37
38 Types:
39
40 Preview = wxPrintPreview:wxPrintPreview()
41 Buttons = integer()
42 Parent = wxWindow:wxWindow()
43 Option =
44 {pos, {X :: integer(), Y :: integer()}} |
45 {size, {W :: integer(), H :: integer()}} |
46 {style, integer()}
47
48 Constructor.
49
50 The buttons parameter may be a combination of the following, us‐
51 ing the bitwise 'or' operator:
52
53 destroy(This :: wxPreviewControlBar()) -> ok
54
55 Destructor.
56
57 createButtons(This) -> ok
58
59 Types:
60
61 This = wxPreviewControlBar()
62
63 Creates buttons, according to value of the button style flags.
64
65 getPrintPreview(This) -> wxPrintPreview:wxPrintPreview()
66
67 Types:
68
69 This = wxPreviewControlBar()
70
71 Gets the print preview object associated with the control bar.
72
73 getZoomControl(This) -> integer()
74
75 Types:
76
77 This = wxPreviewControlBar()
78
79 Gets the current zoom setting in percent.
80
81 setZoomControl(This, Percent) -> ok
82
83 Types:
84
85 This = wxPreviewControlBar()
86 Percent = integer()
87
88 Sets the zoom control.
89
90
91
92wxWidgets team. wx 2.3.1 wxPreviewControlBar(3)