From: Stefan Csomor Date: Thu, 2 Jun 2011 09:25:11 +0000 (+0000) Subject: first implementation for state on custom renderer, see #12890 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/65e3da190939ee300a371def769bb6dd48513603?hp=cc710171423c158f73d0713e4cd625bf533635f9 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 --- diff --git a/src/osx/cocoa/dataview.mm b/src/osx/cocoa/dataview.mm index e5314d3fd8..18537546b8 100644 --- a/src/osx/cocoa/dataview.mm +++ b/src/osx/cocoa/dataview.mm @@ -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 ); }