<div dir="ltr"><div>The following code from the racket/gui documentation gives me an "edit" menu with "copy', "cut","paste","select all","delete" working but "redo" and "undo" don't appear to be working.</div>
<div><br></div><div>Do I have to add code to get "undo", "redo" to work in the "edit" menu. If so what code do I need to add?</div><div><br></div><div>Thanks,</div><div>Harry Spier</div><div>
---------------------------------</div><div>#lang racket/gui<br>(define frame (new frame% [label "Example"]))<br>(send frame show #t)<br><br>(define c (new editor-canvas% [parent frame]))<br>(define t (new text%))<br>
(send c set-editor t)<br><br>(define mb (new menu-bar% [parent frame]))<br>(define m-edit (new menu% [label "Edit"] [parent mb]))<br>(define m-font (new menu% [label "Font"] [parent mb]))<br>(append-editor-operation-menu-items m-edit #t)<br>
(append-editor-font-menu-items m-font)<br><br><br>-----------------------------------------------------------------</div></div>