The attached patch builds upon Sean''s neat work adding the ListItem
constants.
Instead of passing a ListItem into ListCtrl#get_item, you now pass the
row and optionally the column you want info for, and get a ListItem
back. This was suggested by how wxPython works, according to the docs.
I hadn''t realised until now, but %extend does work correctly with
directors - so as Kevin suggested, may be a better option than typemaps
for some one-off methods like this.
a
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: listctrl_item.patch
Url:
http://rubyforge.org/pipermail/wxruby-development/attachments/20061113/28ff1a6e/attachment.ksh