use TWIST buttons by default on the Mac, but also make it possible to
skip the style adjustments so the programmer can do what they want too. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1868,17 +1868,20 @@ bool wxTreeListMainWindow::Create(wxTreeListCtrl *parent,
|
||||
const wxString& name )
|
||||
{
|
||||
#ifdef __WXMAC__
|
||||
int major,minor;
|
||||
wxGetOsVersion( &major, &minor );
|
||||
if ( !(style & wxTR_DONT_ADJUST_MAC))
|
||||
{
|
||||
int major,minor;
|
||||
wxGetOsVersion( &major, &minor );
|
||||
|
||||
if (style & wxTR_HAS_BUTTONS) style |= wxTR_MAC_BUTTONS;
|
||||
if (style & wxTR_HAS_BUTTONS) style &= ~wxTR_HAS_BUTTONS;
|
||||
style &= ~wxTR_LINES_AT_ROOT;
|
||||
style |= wxTR_NO_LINES;
|
||||
if (major < 10)
|
||||
style |= wxTR_ROW_LINES;
|
||||
if (style & wxTR_HAS_BUTTONS) style |= wxTR_TWIST_BUTTONS;
|
||||
if (style & wxTR_HAS_BUTTONS) style &= ~wxTR_HAS_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 );
|
||||
|
||||
|
Reference in New Issue
Block a user