From: Robert Roebling Date: Sat, 28 Feb 2009 17:30:41 +0000 (+0000) Subject: Never show tree lines when there are tree buttons under OS X and GTK+ X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ec2f175241f71963d64d8ab2c8d674c86df4ad25 Never show tree lines when there are tree buttons under OS X and GTK+ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 393231673c..9dcc3281cb 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -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,