22 #ifndef __SPLIT_BUTTON_H__
23 #define __SPLIT_BUTTON_H__
27 #include <wx/xrc/xmlres.h>
35 wxWindowID
id = wxID_ANY,
36 const wxString& label = wxEmptyString,
37 const wxPoint& pos = wxDefaultPosition,
38 const wxSize& size = wxDefaultSize,
39 const wxString& name = wxT(
"splitbutton")
42 Create(parent,
id, label, pos, size, name);
45 bool Create(wxWindow* parent,
46 wxWindowID
id = wxID_ANY,
47 const wxString& label = wxEmptyString,
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize,
50 const wxString& name = wxT(
"splitbutton")
56 bool Enable(
bool enable =
true)
override;
62 wxMenu*
LoadMenu(
const wxString& name);
64 void SetLabel(
const wxString& label);
77 void OnPaint(wxPaintEvent& WXUNUSED(event));