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:
@@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user