noreply at rubyforge.org
2011-Feb-07 14:40 UTC
[wxruby-development] [ wxruby-Bugs-28912 ] samples/text/rich_textctrl.rb contains cargo cult code
Bugs item #28912, was opened at 2011-02-07 14:40 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=28912&group_id=35 Category: Incorrect or missing docs Group: None Status: Open Resolution: None Priority: 3 Submitted By: Florian Hars (fhars) Assigned to: Alex Fenton (brokentoy) Summary: samples/text/rich_textctrl.rb contains cargo cult code Initial Comment: The rich_textcrl sample contains code the pretends to install keyboard shortcuts, when in fact it does nothing at all. None of the five evt_tool(Wx::ID_UNDO) etc. handlers are ever called, and removing them and the AcceleratorTable definition doesn''t change the behavior of the program in the slightest bit. All the code does is confusing the reader of the program into thinking that the keyboard shortcuts that seem to be hardwired into Wx::RichTextCtrl can be controlled programmatically. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=28912&group_id=35