Bugs: Browse | Submit New | Admin

[#28912] samples/text/rich_textctrl.rb contains cargo cult code

Date:
2011-02-07 14:40
Priority:
3
Submitted By:
Florian Hars (fhars)
Assigned To:
Alex Fenton (brokentoy)
Category:
Incorrect or missing docs
State:
Open
Summary:
samples/text/rich_textctrl.rb contains cargo cult code

Detailed description
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.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item