X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/39bc0347fda3505f7fb43447f21efd84b9e00b3c..754626543e36a222bbfbdd4d3373970f2cc5f05f:/include/wx/control.h?ds=sidebyside diff --git a/include/wx/control.h b/include/wx/control.h index cf939b5459..08e9aeceea 100644 --- a/include/wx/control.h +++ b/include/wx/control.h @@ -22,7 +22,7 @@ #include "wx/window.h" // base class -extern WXDLLEXPORT_DATA(const wxChar) wxControlNameStr[]; +extern WXDLLEXPORT_DATA(const char) wxControlNameStr[]; // ---------------------------------------------------------------------------- // wxControl is the base class for all controls @@ -73,9 +73,6 @@ public: // removes the mnemonics characters static wxString RemoveMnemonics(const wxString& str); - // escapes the mnemonics characters ('&') by doubling them - static wxString EscapeMnemonics(const wxString& str); - // controls by default inherit the colours of their parents, if a // particular control class doesn't want to do it, it can override @@ -95,6 +92,9 @@ public: virtual void DoUpdateWindowUI(wxUpdateUIEvent& event); protected: + // choose the default border for this window + virtual wxBorder GetDefaultBorder() const; + // creates the control (calls wxWindowBase::CreateBase inside) and adds it // to the list of parents children bool CreateControl(wxWindowBase *parent,