Implement alternating row colours

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2007-12-18 11:08:12 +00:00
parent 87d3576fdc
commit 6ab2382a3f

View File

@ -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;