From: Robert Roebling Date: Tue, 18 Dec 2007 11:08:12 +0000 (+0000) Subject: Implement alternating row colours X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6ab2382a3f6bea39d11e23916f7f345e26392a36?hp=87d3576fdc86ca3dfdece3c2d6df3f449a22670e Implement alternating row colours git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/databrow.cpp b/src/mac/carbon/databrow.cpp index a313cb60f8..0a70c51159 100644 --- a/src/mac/carbon/databrow.cpp +++ b/src/mac/carbon/databrow.cpp @@ -132,6 +132,10 @@ wxMacDataBrowserTableViewControl::wxMacDataBrowserTableViewControl(wxWindow* pee attributes |= kDataBrowserAttributeListViewDrawColumnDividers; else attributes &= ~kDataBrowserAttributeListViewDrawColumnDividers; + + if ((style & wxDV_ROW_LINES) != 0) + attributes |= kDataBrowserAttributeListViewAlternatingRowColors; + (void) this->SetAttributes(attributes); } /* if */ @@ -566,7 +570,7 @@ Boolean wxMacDataViewDataBrowserListViewControl::DataBrowserCompareProc(DataBrow columnIndex,sortOrder != kDataBrowserOrderDecreasing) < 0); } /* wxMacDataViewDataBrowserListViewControl::DataBrowserCompareProc(DataBrowserItemID, DataBrowserItemID, DataBrowserPropertyID) */ -void wxMacDataViewDataBrowserListViewControl::DataBrowserDrawItemProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, DataBrowserItemState state, Rect const* rectangle, SInt16 bitDepth, Boolean colorDevice) +void wxMacDataViewDataBrowserListViewControl::DataBrowserDrawItemProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, DataBrowserItemState state, Rect const* rectangle, SInt16 WXUNUSED(bitDepth), Boolean WXUNUSED(colorDevice)) { DataBrowserTableViewColumnIndex columnIndex;