Opened 10 years ago

Closed 8 years ago

#12890 closed defect (fixed)

wxOSX-cocoa: state arg is always zero in wxDataViewCustomRenderer::Render

Reported by: robind Owned by:
Priority: normal Milestone:
Component: wxOSX Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description

Without a value for the state arg the renderer can't do things like draw differently if the row is selected, etc.

Change History (5)

comment:1 Changed 9 years ago by csomor

  • Status changed from new to infoneeded_new

Hi Robin,

where can I reproduce this ?

Thanks

comment:2 Changed 9 years ago by csomor

ok, I've added a first version, which just uses the 'isHighlighted' state of the NSCell and deduces wxDATAVIEW_CELL_SELECTED from this, is this sufficient

comment:3 Changed 9 years ago by SC

(In [67843]) first implementation for state on custom renderer, see #12890

comment:4 Changed 9 years ago by robind

  • Status changed from infoneeded_new to new

Yes that might be good enough. I'll try to remember what I was doing when I found the bug and test it again...

comment:5 Changed 8 years ago by vadz

  • Resolution set to fixed
  • Status changed from new to closed

Let's assume it is good enough if it was good for a year and a half...

Note: See TracTickets for help on using tickets.