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
This commit is contained in:
parent
ba86da30cf
commit
ec2f175241
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user