For some reason, Mailman auto-discarded this message, so I am reposting it.
Curt
-----Original Message-----
From: Nick Kral [mailto:nkral@pinnaclet.com]
Sent: Tuesday, January 27, 2004 8:55 AM
To: Wxruby developers'' list
Subject: Re: [Wxruby-users] Wx::ListCtrl#get_item method
Same question - I have a small patch I need to send for the mac version.
Nick
Curt Hibbs wrote:
>I know you are going away soon, do you still want to do a 0.2 Release
before>then? If so, you should probably label the CVS repository and I should do
>another windows build to include this change.
>
>Curt
>
>
>Kevin Smith wrote:
>
>
>>Sent: Monday, January 26, 2004 11:48 PM
>>To: Nobuaki Arima; Wxruby developers'' list
>>Subject: Re: [Wxruby-users] Wx::ListCtrl#get_item method
>>
>>
>>Nobuaki Arima wrote:
>>
>>
>>>I tentatively revised Wx::ListCtrl#get_item method to use the
>>>wxPython-type API.
>>>
>>>
>>Thanks for submitting this code. I have checked in changes to wxRuby
>>that implement ListCtrl#get_item to match the wxPython way.
>>
>>I ended up not using the actual C++ code you submitted, but it was
>>helpful as a guideline. And it really helped that you created a
>>corresponding ruby sample that I could run to make sure it works.
>>
>>In this case, the memory handling was tricky, so I ended up creating a
>>wxRuby ListItem to hold the information, rather than trying to do it
>>with a native C++ object. That is the main difference between your code
>>and mine.
>>
>>If the internal get_item fails (returns false), I just return a nil
>>object. I think that''s easier than raising an exception, but it
would be
>>interesting to know what wxPython does in that case.
>>
>>The sample behaves a little oddly, because apparently the column 1 items
>>do not have explicit colors or fonts set. I don''t know for sure
that
>>wxWindows itself behaves that way, but I can''t see anything
that wxRuby
>>is doing wrong. ListCtrl is always confusing for me.
>>
>>Let me know if you find any problems with this, and thanks again for
>>your contribution.
>>
>>Kevin
>>_______________________________________________
>>wxruby-users mailing list
>>wxruby-users@rubyforge.org
>>http://rubyforge.org/mailman/listinfo/wxruby-users
>>
>>---
>>Incoming mail is certified Virus Free.
>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>Version: 6.0.566 / Virus Database: 357 - Release Date: 1/22/2004
>>
>>
>>
>
>_______________________________________________
>wxruby-users mailing list
>wxruby-users@rubyforge.org
>http://rubyforge.org/mailman/listinfo/wxruby-users
>
>
>
>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.566 / Virus Database: 357 - Release Date: 1/22/2004