first implementation for state on custom renderer, see #12890

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-06-02 09:25:11 +00:00
parent cc71017142
commit 65e3da1909

View File

@@ -1179,7 +1179,11 @@ outlineView:(NSOutlineView*)outlineView
wxGraphicsContext* gc = wxGraphicsContext::CreateFromNative(context);
dc.SetGraphicsContext(gc);
renderer->WXCallRender(wxFromNSRect(controlView, cellFrame), &dc, 0);
int state = 0;
if ( [self isHighlighted] )
state |= wxDATAVIEW_CELL_SELECTED;
renderer->WXCallRender(wxFromNSRect(controlView, cellFrame), &dc, state);
CGContextRestoreGState( context );
}