X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ada8f807758339fe6a80070fe0935d87496dbe57..bf7d7ee7062f7f6028df40e43745235658e38b4d:/include/wx/generic/panelg.h?ds=sidebyside diff --git a/include/wx/generic/panelg.h b/include/wx/generic/panelg.h index 5d9f2a0f0a..44ea182c1c 100644 --- a/include/wx/generic/panelg.h +++ b/include/wx/generic/panelg.h @@ -71,9 +71,11 @@ public: // to the dialog via validators. virtual void InitDialog(); +#if wxUSE_BUTTON // a default button is activated when Enter is pressed wxButton *GetDefaultItem() const { return m_btnDefault; } void SetDefaultItem(wxButton *btn) { m_btnDefault = btn; } +#endif // wxUSE_BUTTON // implementation from now on // -------------------------- @@ -109,8 +111,10 @@ protected: // the child which had the focus last time this panel was activated wxWindow *m_winLastFocused; +#if wxUSE_BUTTON // a default button or NULL wxButton *m_btnDefault; +#endif // wxUSE_BUTTON private: DECLARE_DYNAMIC_CLASS(wxPanel)