<br><br><div class="gmail_quote">On Jan 4, 2008 1:02 PM, Alex Fenton <<a href="mailto:alex@pressure.to">alex@pressure.to</a>> 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>> Menu.append_check_item(), like Menu.append(), is supposed to return a<br>> reference to the created menu item. Here is a test code which seems<br>> to show that this behavior works for append(), but fails for
<br>> append_check_item(). This is the output I get:<br>><br>> % ruby test-menu.rb<br>> #<Wx::MenuItem:0xb74c036c><br>> nil<br>><br>> Am I missing something or is this a bug? Both menu items are created
<br>> and work as expected. I am running the 1.9.2 tarball.<br><br></div>Thank you for the report and the clear test-case. It'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'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. Thanks for the confirmation, fix, and work-around.<br><br>Bob<br><br></div></div><br>