new stock buttons API

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-08-30 14:42:51 +00:00
parent 598ddd96f4
commit 5f7bcb48fd
40 changed files with 497 additions and 829 deletions

View File

@@ -21,7 +21,7 @@ class WXDLLEXPORT wxButton: public wxButtonBase
inline wxButton() {}
inline wxButton( wxWindow* pParent
,wxWindowID vId
,const wxString& rsLabel
,const wxString& rsLabel = wxEmptyString
,const wxPoint& rPos = wxDefaultPosition
,const wxSize& rSize = wxDefaultSize
,long lStyle = 0
@@ -39,20 +39,10 @@ class WXDLLEXPORT wxButton: public wxButtonBase
,rsName
);
}
wxButton(wxWindow *parent, wxWindowID id, wxStockItemID stock,
const wxString& descriptiveLabel = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
Create(parent, id, stock, descriptiveLabel, pos, style, validator, name);
}
bool Create( wxWindow* pParent
,wxWindowID vId
,const wxString& rsLabel
,const wxString& rsLabel = wxEmptyString
,const wxPoint& rPos = wxDefaultPosition
,const wxSize& rSize = wxDefaultSize
,long lStyle = 0
@@ -60,17 +50,6 @@ class WXDLLEXPORT wxButton: public wxButtonBase
,const wxString& rsName = wxButtonNameStr
);
bool Create(wxWindow *parent, wxWindowID id, wxStockItemID stock,
const wxString& descriptiveLabel = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
return CreateStock(parent, id, stock, descriptiveLabel,
pos, style, validator, name);
}
virtual ~wxButton();
virtual void SetDefault(void);