const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = "button");
+ const wxString& name = wxButtonNameStr);
/**
Destructor, destroying the button.
*/
- ~wxButton();
+ virtual ~wxButton();
/**
Button creation function for two-step creation.
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
- const wxValidator& validator,
- const wxString& name = "button");
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxButtonNameStr);
/**
Returns the default size for the buttons. It is advised to make all the dialog
buttons of the same size and this function allows to retrieve the (platform and
current font dependent size) which should be the best suited for this.
*/
- wxSize GetDefaultSize();
+ static wxSize GetDefaultSize();
/**
Returns the string label for the button.