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:
@@ -665,6 +665,17 @@ bool wxGenericTreeCtrl::Create(wxWindow *parent,
|
|||||||
const wxValidator &validator,
|
const wxValidator &validator,
|
||||||
const wxString& name )
|
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,
|
wxScrolledWindow::Create( parent, id, pos, size,
|
||||||
style|wxHSCROLL|wxVSCROLL, name );
|
style|wxHSCROLL|wxVSCROLL, name );
|
||||||
|
|
||||||
|
@@ -347,12 +347,7 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id,
|
|||||||
|
|
||||||
wxLayoutConstraints *b4 = new wxLayoutConstraints;
|
wxLayoutConstraints *b4 = new wxLayoutConstraints;
|
||||||
m_ContentsBox = new wxTreeCtrl( dummy, wxID_HTML_TREECTRL,
|
m_ContentsBox = new wxTreeCtrl( dummy, wxID_HTML_TREECTRL,
|
||||||
wxDefaultPosition, wxDefaultSize,
|
wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER|wxTR_HAS_BUTTONS );
|
||||||
#ifdef __WXMAC__
|
|
||||||
wxSUNKEN_BORDER|wxTR_MAC_BUTTONS|wxTR_NO_LINES|wxTR_ROW_LINES );
|
|
||||||
#else
|
|
||||||
wxSUNKEN_BORDER|wxTR_HAS_BUTTONS );
|
|
||||||
#endif
|
|
||||||
m_ContentsBox->AssignImageList(ContentsImageList);
|
m_ContentsBox->AssignImageList(ContentsImageList);
|
||||||
|
|
||||||
b4->top.Below (m_Bookmarks, 10);
|
b4->top.Below (m_Bookmarks, 10);
|
||||||
|
Reference in New Issue
Block a user