X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f5fe332828c082195b265dbcccb9eb2b4d98817..dea54670b3589e472f8fbeb7dfcad382469f23c5:/interface/wx/bmpbuttn.h?ds=inline diff --git a/interface/wx/bmpbuttn.h b/interface/wx/bmpbuttn.h index 91223e9ef7..20bd4ab543 100644 --- a/interface/wx/bmpbuttn.h +++ b/interface/wx/bmpbuttn.h @@ -3,7 +3,7 @@ // Purpose: interface of wxBitmapButton // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -33,7 +33,7 @@ @beginEventEmissionTable{wxCommandEvent} @event{EVT_BUTTON(id, func)} - Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked. + Process a @c wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked. @endEventTable @library{wxcore} @@ -99,5 +99,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); };