]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
also fix handling of wxSP_ARROW_KEYS|wxSP_WRAP (see #10565)
[wxWidgets.git] / src / generic / treectlg.cpp
index 393231673c90d27c3ba5e556de050586668fd151..9dcc3281cbb74931a39345b2970867077c8ce663 100644 (file)
@@ -1004,8 +1004,16 @@ bool wxGenericTreeCtrl::Create(wxWindow *parent,
 
     if (major < 10)
         style |= wxTR_ROW_LINES;
+        
+    if (style & wxTR_HAS_BUTTONS)
+        style |= wxTR_NO_LINES;
 #endif // __WXMAC__
 
+#ifdef __WXGTK20__
+    if (style & wxTR_HAS_BUTTONS)
+        style |= wxTR_NO_LINES;
+#endif
+
     if ( !wxControl::Create( parent, id, pos, size,
                              style|wxHSCROLL|wxVSCROLL,
                              validator,