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:
@@ -132,6 +132,10 @@ wxMacDataBrowserTableViewControl::wxMacDataBrowserTableViewControl(wxWindow* pee
|
|||||||
attributes |= kDataBrowserAttributeListViewDrawColumnDividers;
|
attributes |= kDataBrowserAttributeListViewDrawColumnDividers;
|
||||||
else
|
else
|
||||||
attributes &= ~kDataBrowserAttributeListViewDrawColumnDividers;
|
attributes &= ~kDataBrowserAttributeListViewDrawColumnDividers;
|
||||||
|
|
||||||
|
if ((style & wxDV_ROW_LINES) != 0)
|
||||||
|
attributes |= kDataBrowserAttributeListViewAlternatingRowColors;
|
||||||
|
|
||||||
(void) this->SetAttributes(attributes);
|
(void) this->SetAttributes(attributes);
|
||||||
} /* if */
|
} /* if */
|
||||||
|
|
||||||
@@ -566,7 +570,7 @@ Boolean wxMacDataViewDataBrowserListViewControl::DataBrowserCompareProc(DataBrow
|
|||||||
columnIndex,sortOrder != kDataBrowserOrderDecreasing) < 0);
|
columnIndex,sortOrder != kDataBrowserOrderDecreasing) < 0);
|
||||||
} /* wxMacDataViewDataBrowserListViewControl::DataBrowserCompareProc(DataBrowserItemID, DataBrowserItemID, DataBrowserPropertyID) */
|
} /* 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;
|
DataBrowserTableViewColumnIndex columnIndex;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user