<?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>
    <holder>Ericsson AB. All Rights Reserved.</holder></copyright>
  <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.

  </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>
