2005-01-23 02:32:19 -05:00
|
|
|
\section{\class{wxStdDialogButtonSizer}}\label{wxstddialogbuttonsizer}
|
|
|
|
|
2005-02-11 15:08:51 -05:00
|
|
|
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 Mac OS X
|
|
|
|
human interface guidelines.
|
2005-01-23 02:32:19 -05:00
|
|
|
|
2005-02-11 15:08:51 -05:00
|
|
|
When there aren't interface guidelines defined for a particular platform or toolkit, wxStdDialogButtonSizer reverts
|
|
|
|
to the Windows implementation.
|
2005-01-23 02:32:19 -05:00
|
|
|
|
2005-02-11 15:08:51 -05:00
|
|
|
To use this class, first add buttons to the sizer by calling AddButton (or SetAffirmativeButton, SetNegativeButton,
|
2005-02-18 12:49:03 -05:00
|
|
|
or SetCancelButton) and then call Realize in order to create the actual button layout used. Other than these special
|
2005-02-11 15:08:51 -05:00
|
|
|
operations, this sizer works like any other sizer.
|
2005-01-23 02:32:19 -05:00
|
|
|
|
2005-02-11 15:08:51 -05:00
|
|
|
If you add a button with wxID\_SAVE, on Mac OS X the button will be renamed to "Save" and
|
|
|
|
the wxID\_NO button will be renamed to "Don't Save" in accordance with the Mac OS X Human Interface Guidelines.
|
2005-01-23 02:32:19 -05:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxBoxSizer}{wxboxsizer}\\
|
|
|
|
\helpref{wxSizer}{wxsizer}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/sizer.h>
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
2005-02-11 16:18:42 -05:00
|
|
|
\helpref{wxSizer}{wxsizer}, \helpref{Sizer overview}{sizeroverview}, \helpref{wxDialog::CreateButtonSizer}{wxdialogcreatebuttonsizer}
|
|
|
|
|
|
|
|
\membersection{wxStdDialogButtonSizer::wxStdDialogButtonSizer}\label{wxstddialogbuttonsizerctor}
|
2005-01-23 02:32:19 -05:00
|
|
|
|
|
|
|
\func{}{wxStdDialogButtonSizer}{\void}
|
|
|
|
|
|
|
|
Constructor for a wxStdDialogButtonSizer.
|
|
|
|
|
|
|
|
\membersection{wxStdDialogButtonSizer::AddButton}\label{wxstddialogbuttonsizeraddbutton}
|
|
|
|
|
|
|
|
\func{void}{AddButton}{\param{wxButton* }{button}}
|
|
|
|
|
2005-02-11 15:08:51 -05:00
|
|
|
Adds a button to the wxStdDialogButtonSizer. The button must have one of the following identifiers:
|
2005-01-23 02:32:19 -05:00
|
|
|
|
2005-02-11 16:18:42 -05:00
|
|
|
\begin{itemize}\itemsep=0pt
|
2005-02-11 15:08:51 -05:00
|
|
|
\item wxID\_OK
|
|
|
|
\item wxID\_YES
|
|
|
|
\item wxID\_SAVE
|
|
|
|
\item wxID\_APPLY
|
|
|
|
\item wxID\_NO
|
|
|
|
\item wxID\_CANCEL
|
|
|
|
\item wxID\_HELP
|
|
|
|
\item wxID\_CONTEXT\_HELP
|
2005-01-23 02:32:19 -05:00
|
|
|
\end{itemize}
|
|
|
|
|
2005-02-18 12:49:03 -05:00
|
|
|
\membersection{wxStdDialogButtonSizer::Realize}\label{wxstddialogbuttonsizerrealize}
|
2005-01-23 02:32:19 -05:00
|
|
|
|
2005-02-18 12:49:03 -05:00
|
|
|
\func{void}{Realize}{\void}
|
2005-01-23 02:32:19 -05:00
|
|
|
|
|
|
|
Rearranges the buttons and applies proper spacing between buttons to make them match the platform or toolkit's interface guidelines.
|
|
|
|
|
|
|
|
\membersection{wxStdDialogButtonSizer::SetAffirmativeButton}\label{wxstddialogbuttonsizersetaffirmativebutton}
|
|
|
|
|
|
|
|
\func{void}{SetAffirmativeButton}{\param{wxButton* }{button}}
|
|
|
|
|
2005-02-11 15:08:51 -05:00
|
|
|
Sets the affirmative button for the sizer. This allows you to use identifiers other than the standard identifiers outlined above.
|
2005-01-23 02:32:19 -05:00
|
|
|
|
|
|
|
\membersection{wxStdDialogButtonSizer::SetCancelButton}\label{wxstddialogbuttonsizersetcancelbutton}
|
|
|
|
|
|
|
|
\func{void}{SetCancelButton}{\param{wxButton* }{button}}
|
|
|
|
|
2005-02-11 15:08:51 -05:00
|
|
|
Sets the cancel button for the sizer. This allows you to use identifiers other than the standard identifiers outlined above.
|
2005-01-23 02:32:19 -05:00
|
|
|
|
|
|
|
\membersection{wxStdDialogButtonSizer::SetNegativeButton}\label{wxstddialogbuttonsizersetnegativebutton}
|
|
|
|
|
|
|
|
\func{void}{SetNegativeButton}{\param{wxButton* }{button}}
|
|
|
|
|
2005-02-11 15:08:51 -05:00
|
|
|
Sets the negative button for the sizer. This allows you to use identifiers other than the standard identifiers outlined above.
|
|
|
|
|