1wxPanel(3) Erlang Module Definition wxPanel(3)
2
3
4
6 wxPanel - Functions for wxPanel class
7
9 A panel is a window on which controls are placed. It is usually placed
10 within a frame. Its main feature over its parent class wxWindow is code
11 for handling child windows and TAB traversal, which is implemented na‐
12 tively if possible (e.g. in wxGTK) or by wxWidgets itself otherwise.
13
14 Note: Tab traversal is implemented through an otherwise undocumented
15 intermediate wxControlContainer class from which any class can derive
16 in addition to the normal wxWindow base class. Please see and to find
17 out how this is achieved.
18
19 Note: if not all characters are being intercepted by your OnKeyDown or
20 OnChar handler, it may be because you are using the wxTAB_TRAVERSAL
21 style, which grabs some keypresses for use by child controls.
22
23 Remark: By default, a panel has the same colouring as a dialog.
24
25 See: wxDialog
26
27 This class is derived (and can use functions) from: wxWindow wx‐
28 EvtHandler
29
30 wxWidgets docs: wxPanel
31
33 Event types emitted from this class: navigation_key
34
36 wxPanel() = wx:wx_object()
37
39 new() -> wxPanel()
40
41 Default constructor.
42
43 new(Parent) -> wxPanel()
44
45 Types:
46
47 Parent = wxWindow:wxWindow()
48
49 new(Parent, Options :: [Option]) -> wxPanel()
50
51 Types:
52
53 Parent = wxWindow:wxWindow()
54 Option =
55 {winid, integer()} |
56 {pos, {X :: integer(), Y :: integer()}} |
57 {size, {W :: integer(), H :: integer()}} |
58 {style, integer()}
59
60 Constructor.
61
62 See: Create() (not implemented in wx)
63
64 destroy(This :: wxPanel()) -> ok
65
66 Destructor.
67
68 Deletes any child windows before deleting the physical window.
69
70 initDialog(This) -> ok
71
72 Types:
73
74 This = wxPanel()
75
76 Sends a wxInitDialogEvent, which in turn transfers data to the
77 dialog via validators.
78
79 See: wxInitDialogEvent
80
81 setFocusIgnoringChildren(This) -> ok
82
83 Types:
84
85 This = wxPanel()
86
87 In contrast to wxWindow:setFocus/1 (see above) this will set the
88 focus to the panel even if there are child windows in the panel.
89
90 This is only rarely needed.
91
92
93
94wxWidgets team. wx 2.1 wxPanel(3)