21 #ifndef __ANTARES_TOOLBOX_CREATE_H__
22 #define __ANTARES_TOOLBOX_CREATE_H__
25 #include <wx/button.h>
26 #include <wx/stattext.h>
27 #include <yuni/yuni.h>
29 namespace Antares::Component
39 template<
class T,
class StringT,
class UserDataT>
40 wxButton* CreateButton(wxWindow* parent,
41 const StringT& caption,
43 void (T::*method)(UserDataT) = NULL,
44 UserDataT userdata = NULL);
52 wxStaticText* CreateLabel(wxWindow* parent,
const wxString& caption);
62 wxStaticText* CreateLabel(wxWindow* parent,
const wxString& caption,
bool bold,
bool grey =
false);
73 wxStaticText* CreateLabel(wxWindow* parent,
74 const wxString& caption,
82 wxWindow* AddVerticalSeparator(wxWindow* parent, wxSizer* sizer, uint size = 1, uint border = 4);
87 wxWindow* AddHorizontalSeparator(wxWindow* parent, wxSizer* sizer,
bool spacing =
true);