<br><br><div class="gmail_quote">On Jan 4, 2008 1:02 PM, Alex Fenton &lt;<a href="mailto:alex@pressure.to">alex@pressure.to</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Robert Anderson wrote:<br>&gt; Menu.append_check_item(), like Menu.append(), is supposed to return a<br>&gt; reference to the created menu item. &nbsp;Here is a test code which seems<br>&gt; to show that this behavior works for append(), but fails for
<br>&gt; append_check_item(). &nbsp;This is the output I get:<br>&gt;<br>&gt; % ruby test-menu.rb<br>&gt; #&lt;Wx::MenuItem:0xb74c036c&gt;<br>&gt; nil<br>&gt;<br>&gt; Am I missing something or is this a bug? &nbsp;Both menu items are created
<br>&gt; and work as expected. &nbsp;I am running the 1.9.2 tarball.<br><br></div>Thank you for the report and the clear test-case. It&#39;s a bug; the wrong<br>C++ method signature was in one of the header files from which the API
<br>is generated.<br><br>It&#39;s now fixed by SVN:1486 for the next release. If you need to work<br>around n the interim, you should can use the long form of append_item<br>and give Wx::ITEM_CHECK as the fourth parameter.
<br><br>cheers<br>alex<br></blockquote><div><br>Beautiful.&nbsp; Thanks for the confirmation, fix, and work-around.<br><br>Bob<br><br></div></div><br>