X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a194bda7be7c240a3856413e19d7152ecfd7439..9e9574fe45b176ee74bba8fad7574cf9906145d1:/interface/wx/bmpbuttn.h diff --git a/interface/wx/bmpbuttn.h b/interface/wx/bmpbuttn.h index 6af9eed0a9..f8e8c3fed5 100644 --- a/interface/wx/bmpbuttn.h +++ b/interface/wx/bmpbuttn.h @@ -2,7 +2,6 @@ // Name: bmpbuttn.h // Purpose: interface of wxBitmapButton // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -33,12 +32,12 @@ @beginEventEmissionTable{wxCommandEvent} @event{EVT_BUTTON(id, func)} - Process a @c wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked. + Process a @c wxEVT_BUTTON event, when the button is clicked. @endEventTable @library{wxcore} @category{ctrl} - @appearance{bitmapbutton.png} + @appearance{bitmapbutton} @see wxButton */ @@ -99,5 +98,21 @@ public: long style = wxBU_AUTODRAW, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxButtonNameStr); + + /** + Helper function creating a standard-looking "Close" button. + + To get the best results, platform-specific code may need to be used to + create a small, title bar-like "Close" button. This function is + provided to avoid the need to test for the current platform and creates + the button with as native look as possible. + + @param parent The button parent window, must be non-@NULL. + @param winid The identifier for the new button. + @return The new button. + + @since 2.9.5 + */ + static wxBitmapButton* NewCloseButton(wxWindow* parent, wxWindowID winid); };