X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46cd520d1e12e5d2dbe22b46bb2a8b67b808ce42..ef344ff86223f1f0961f025c0b249c898529c095:/include/wx/generic/treectlg.h diff --git a/include/wx/generic/treectlg.h b/include/wx/generic/treectlg.h index 08761557d2..7958708b1e 100644 --- a/include/wx/generic/treectlg.h +++ b/include/wx/generic/treectlg.h @@ -16,6 +16,8 @@ #pragma interface "treectlg.h" #endif +#if wxUSE_TREECTRL + #include "wx/defs.h" #include "wx/string.h" #include "wx/object.h" @@ -53,7 +55,11 @@ public: wxGenericTreeCtrl(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, +#ifdef __WXMAC__ + long style = wxTR_MAC_BUTTONS | wxTR_NO_LINES | wxTR_ROW_LINES, +#else long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, +#endif const wxValidator &validator = wxDefaultValidator, const wxString& name = wxTreeCtrlNameStr) { @@ -66,7 +72,11 @@ public: bool Create(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, +#ifdef __WXMAC__ + long style = wxTR_MAC_BUTTONS | wxTR_NO_LINES | wxTR_ROW_LINES, +#else + long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, +#endif const wxValidator &validator = wxDefaultValidator, const wxString& name = wxTreeCtrlNameStr); @@ -148,6 +158,9 @@ public: // set the items font (should be of the same height for all items) void SetItemFont(const wxTreeItemId& item, const wxFont& font); + // set the window font + virtual bool SetFont( const wxFont &font ); + // item status inquiries // --------------------- @@ -412,7 +425,7 @@ private: DECLARE_DYNAMIC_CLASS(wxGenericTreeCtrl) }; -#if !defined(__WXMSW__) || defined(__WIN16__) +#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__) /* * wxTreeCtrl has to be a real class or we have problems with * the run-time information. @@ -439,5 +452,7 @@ public: #endif +#endif // wxUSE_TREECTRL + #endif // _GENERIC_TREECTRL_H_