X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc1b07fd4da4721233cda03471c4eefb786ee6ad..1b7751aaa9a86d76a850b9267bc0c201e3cea30f:/interface/wx/tglbtn.h diff --git a/interface/wx/tglbtn.h b/interface/wx/tglbtn.h index 06e6e94104..672836ebc0 100644 --- a/interface/wx/tglbtn.h +++ b/interface/wx/tglbtn.h @@ -3,10 +3,12 @@ // Purpose: interface of wxBitmapToggleButton, wxToggleButton // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +wxEventType wxEVT_TOGGLEBUTTON; + /** @class wxToggleButton @@ -19,16 +21,16 @@ @beginEventEmissionTable{wxCommandEvent} @event{EVT_TOGGLEBUTTON(id, func)} - Handles a toggle button click event. + Handles a wxEVT_TOGGLEBUTTON event. @endEventTable @library{wxcore} @category{ctrl} - @appearance{togglebutton.png} + @appearance{togglebutton} @see wxCheckBox, wxButton, wxBitmapToggleButton */ -class wxToggleButton : public wxControl +class wxToggleButton : public wxAnyButton { public: /** @@ -106,21 +108,26 @@ public: /** @class wxBitmapToggleButton - wxBitmapToggleButton is a wxToggleButton - that contains a bitmap instead of text. + wxBitmapToggleButton is a wxToggleButton that contains a bitmap instead of + text. + + This class is not available in all ports currently (although it is + available in the major ones), test for @c wxHAS_BITMAPTOGGLEBUTTON to + determine whether it can be used (in addition for possibly testing for + @c wxUSE_TOGGLEBTN which can be set to 0 to explicitly disable support for + this class and wxToggleButton). This control emits an update UI event. @beginEventEmissionTable{wxCommandEvent} @event{EVT_TOGGLEBUTTON(id, func)} - Handles a toggle button click event. + Handles a wxEVT_TOGGLEBUTTON event. @endEventTable @library{wxcore} @category{ctrl} - @appearance{bitmaptogglebutton.png} */ -class wxBitmapToggleButton : public wxControl +class wxBitmapToggleButton : public wxToggleButton { public: /**