penguins  1.0.0
simple_static_box.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <wx/defs.h>
4 #include <wx/gdicmn.h>
5 #include <wx/statbox.h>
6 #include <wx/string.h>
7 #include <wx/window.h>
8 
10 class SimpleStaticBox : public wxStaticBox {
11 public:
13 
15  wxWindow* parent,
16  wxWindowID id,
17  const wxPoint& pos = wxDefaultPosition,
18  const wxSize& size = wxDefaultSize,
19  long style = 0,
20  const wxString& name = wxStaticBoxNameStr
21  ) {
22  this->Create(parent, id, pos, size, style, name);
23  }
24 
25  bool Create(
26  wxWindow* parent,
27  wxWindowID id,
28  const wxPoint& pos = wxDefaultPosition,
29  const wxSize& size = wxDefaultSize,
30  long style = 0,
31  const wxString& name = wxStaticBoxNameStr
32  );
33 
34 protected:
35 #ifdef __WXGTK__
36  virtual bool GTKWidgetNeedsMnemonic() const override;
37  virtual void GTKWidgetDoSetMnemonic(GtkWidget* w) override;
38 #endif
39 };
A wxStaticBox with just the border and no label.
bool Create(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxStaticBoxNameStr)
SimpleStaticBox(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxStaticBoxNameStr)
int wxWindowID