1wxStdDialogButtonSizer(3) Erlang Module Definition wxStdDialogButtonSizer(3)
2
3
4
6 wxStdDialogButtonSizer - Functions for wxStdDialogButtonSizer class
7
9 This class creates button layouts which conform to the standard button
10 spacing and ordering defined by the platform or toolkit's user inter‐
11 face guidelines (if such things exist). By using this class, you can
12 ensure that all your standard dialogs look correct on all major plat‐
13 forms. Currently it conforms to the Windows, GTK+ and macOS human in‐
14 terface guidelines.
15
16 When there aren't interface guidelines defined for a particular plat‐
17 form or toolkit, wxStdDialogButtonSizer reverts to the Windows imple‐
18 mentation.
19
20 To use this class, first add buttons to the sizer by calling addBut‐
21 ton/2 (or setAffirmativeButton/2, setNegativeButton/2 or setCancelBut‐
22 ton/2) and then call Realize in order to create the actual button lay‐
23 out used. Other than these special operations, this sizer works like
24 any other sizer.
25
26 If you add a button with wxID_SAVE, on macOS the button will be renamed
27 to "Save" and the wxID_NO button will be renamed to "Don't Save" in ac‐
28 cordance with the macOS Human Interface Guidelines.
29
30 See: wxSizer, Overview sizer, wxDialog:createButtonSizer/2
31
32 This class is derived (and can use functions) from: wxBoxSizer wxSizer
33
34 wxWidgets docs: wxStdDialogButtonSizer
35
37 wxStdDialogButtonSizer() = wx:wx_object()
38
40 new() -> wxStdDialogButtonSizer()
41
42 Constructor for a wxStdDialogButtonSizer.
43
44 addButton(This, Button) -> ok
45
46 Types:
47
48 This = wxStdDialogButtonSizer()
49 Button = wxButton:wxButton()
50
51 Adds a button to the wxStdDialogButtonSizer.
52
53 The button must have one of the following identifiers:
54
55 realize(This) -> ok
56
57 Types:
58
59 This = wxStdDialogButtonSizer()
60
61 Rearranges the buttons and applies proper spacing between but‐
62 tons to make them match the platform or toolkit's interface
63 guidelines.
64
65 setAffirmativeButton(This, Button) -> ok
66
67 Types:
68
69 This = wxStdDialogButtonSizer()
70 Button = wxButton:wxButton()
71
72 Sets the affirmative button for the sizer.
73
74 This allows you to use identifiers other than the standard iden‐
75 tifiers outlined above.
76
77 setCancelButton(This, Button) -> ok
78
79 Types:
80
81 This = wxStdDialogButtonSizer()
82 Button = wxButton:wxButton()
83
84 Sets the cancel button for the sizer.
85
86 This allows you to use identifiers other than the standard iden‐
87 tifiers outlined above.
88
89 setNegativeButton(This, Button) -> ok
90
91 Types:
92
93 This = wxStdDialogButtonSizer()
94 Button = wxButton:wxButton()
95
96 Sets the negative button for the sizer.
97
98 This allows you to use identifiers other than the standard iden‐
99 tifiers outlined above.
100
101 destroy(This :: wxStdDialogButtonSizer()) -> ok
102
103 Destroys the object.
104
105
106
107wxWidgets team. wx 2.1.4 wxStdDialogButtonSizer(3)