Extract "Close" button creation from wxInfoBarGeneric into new function.
Such buttons may be needed in other places and it's not obvious to create them, so add a new public wxBitmapButton::NewCloseButton() method to allow creating them easily. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user