Changed wxTreeCtrl to look Mac-like under Mac

automatically.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2001-12-10 11:21:28 +00:00
parent abfc2b1d5a
commit 2593f03384
2 changed files with 13 additions and 7 deletions

View File

@@ -665,6 +665,17 @@ bool wxGenericTreeCtrl::Create(wxWindow *parent,
const wxValidator &validator,
const wxString& name )
{
#ifdef __WXMAC__
int major,minor;
wxGetOsVersion( &major, &minor );
if (style & wxTR_HAS_BUTTONS) style |= wxTR_MAC_BUTTONS;
style &= ~wxTR_LINES_AT_ROOT;
style |= wxTR_NO_LINES;
if (major < 10)
style |= wxTR_ROW_LINES;
#endif
wxScrolledWindow::Create( parent, id, pos, size,
style|wxHSCROLL|wxVSCROLL, name );