]> git.saurik.com Git - wxWidgets.git/commitdiff
Never show tree lines when there are tree buttons under OS X and GTK+
authorRobert Roebling <robert@roebling.de>
Sat, 28 Feb 2009 17:30:41 +0000 (17:30 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 28 Feb 2009 17:30:41 +0000 (17:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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,