[wxruby-users] FW: BoolEditor and renderer in Grid

Alex Fenton alex at pressure.to
Mon Oct 20 11:59:24 EDT 2008


Irlweg, Franz (ZNT) wrote:
> I'm using the Wx::Grid, with GridTableBase. (wxruby 1.9.5 and wxruby
> 1.9.8)
>
> The GridCellBoolEditor  and GridCellBoolRenderer doesn't work. How can I
> solve the problem
>   

Thank you for the report and example. It's a known bug:
http://rubyforge.org/tracker/index.php?func=detail&aid=21389&group_id=35&atid=218

I'm afraid I don't know how to solve this one. I think I know what the 
problem is - ruby's garbage collection is destroying the Attr object 
while it's still needed.

Technically, there may be some clever fix possible by having the wrapper 
DISOWN the return value from GridTableBase so that memory management is 
passed back to Wx, but I'm not sure how to appraoch this.

Is it all possible to use a normal Grid in your case, without GridTableBase?

alex



More information about the wxruby-users mailing list