blob: def62361eaa1a8fd5a42d87b866329485961d9af (
plain)
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
|
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">
<!-- THIS FILE IS GENERATED DO NOT EDIT -->
<erlref>
<header>
<copyright>
<year>2020</year><year>2021</year>
<holder>wxWidgets team.</holder></copyright>
<legalnotice>Licensed under the wxWindows Free Documentation Licence, Version 3
</legalnotice>
<title>wxStdDialogButtonSizer</title>
</header>
<module>wxStdDialogButtonSizer</module>
<modulesummary>Functions for wxStdDialogButtonSizer class</modulesummary>
<description><p>This class creates button layouts which conform to the standard button spacing and ordering defined by the platform or toolkit's user interface guidelines (if such things exist). By using this class, you can ensure that all your standard dialogs look correct on all major platforms. Currently it conforms to the Windows, GTK+ and macOS human interface guidelines.
</p><p>When there aren't interface guidelines defined for a particular platform or toolkit, <seeerl marker="wxStdDialogButtonSizer"><c>wxStdDialogButtonSizer</c></seeerl> reverts to the Windows implementation.
</p><p>To use this class, first add buttons to the sizer by calling <seemfa marker="#addButton/2"><c>addButton/2</c></seemfa> (or <seemfa marker="#setAffirmativeButton/2"><c>setAffirmativeButton/2</c></seemfa>, <seemfa marker="#setNegativeButton/2"><c>setNegativeButton/2</c></seemfa> or <seemfa marker="#setCancelButton/2"><c>setCancelButton/2</c></seemfa>) and then call Realize in order to create the actual button layout used. Other than these special operations, this sizer works like any other sizer.
</p><p>If you add a button with wxID_SAVE, on macOS the button will be renamed to "Save" and the wxID_NO button will be renamed to "Don't Save" in accordance with the macOS Human Interface Guidelines.
</p><p>See: <seeerl marker="wxSizer"><c>wxSizer</c></seeerl>, <url href="https://docs.wxwidgets.org/3.1/overview_sizer.html#overview_sizer">Overview sizer</url>, <seemfa marker="wxDialog#createButtonSizer/2"><c>wxDialog:createButtonSizer/2</c></seemfa>
</p>
<p>This class is derived (and can use functions) from:
<seeerl marker="wxBoxSizer"><c>wxBoxSizer</c></seeerl> <seeerl marker="wxSizer"><c>wxSizer</c></seeerl></p>
<p>wxWidgets docs: <url href="https://docs.wxwidgets.org/3.1/classwx_std_dialog_button_sizer.html">wxStdDialogButtonSizer</url></p>
</description>
<datatypes><datatype><name name="wxStdDialogButtonSizer"/></datatype></datatypes>
<funcs>
<func>
<name name="new" arity="0" clause_i="1" since=""/>
<fsummary>Constructor for a <c>wxStdDialogButtonSizer</c>. </fsummary>
<desc><p>Constructor for a <seeerl marker="wxStdDialogButtonSizer"><c>wxStdDialogButtonSizer</c></seeerl>.
</p></desc>
</func>
<func>
<name name="addButton" arity="2" clause_i="1" since=""/>
<fsummary>Adds a button to the <c>wxStdDialogButtonSizer</c>. </fsummary>
<desc><p>Adds a button to the <seeerl marker="wxStdDialogButtonSizer"><c>wxStdDialogButtonSizer</c></seeerl>.
</p><p>The <c>button</c> must have one of the following identifiers:
</p></desc>
</func>
<func>
<name name="realize" arity="1" clause_i="1" since=""/>
<fsummary>Rearranges the buttons and applies proper spacing between buttons to make them match the platform or toolkit's interface guidelines. </fsummary>
<desc><p>Rearranges the buttons and applies proper spacing between buttons to make them match the platform or toolkit's interface guidelines.
</p></desc>
</func>
<func>
<name name="setAffirmativeButton" arity="2" clause_i="1" since=""/>
<fsummary>Sets the affirmative button for the sizer. </fsummary>
<desc><p>Sets the affirmative button for the sizer.
</p><p>This allows you to use identifiers other than the standard identifiers outlined above.
</p></desc>
</func>
<func>
<name name="setCancelButton" arity="2" clause_i="1" since=""/>
<fsummary>Sets the cancel button for the sizer. </fsummary>
<desc><p>Sets the cancel button for the sizer.
</p><p>This allows you to use identifiers other than the standard identifiers outlined above.
</p></desc>
</func>
<func>
<name name="setNegativeButton" arity="2" clause_i="1" since=""/>
<fsummary>Sets the negative button for the sizer. </fsummary>
<desc><p>Sets the negative button for the sizer.
</p><p>This allows you to use identifiers other than the standard identifiers outlined above.
</p></desc>
</func>
<func>
<name name="destroy" arity="1" clause_i="1" since=""/>
<fsummary>Destructor</fsummary>
<desc><p>Destroys the object.</p></desc>
</func>
</funcs>
</erlref>
|