<div dir="ltr"><br><div>I'm using Racket 5.3.6 with windows and ran the following GUI program</div><div>#lang racket/gui<br>(define frame (new frame% [label "Example"]))<br>(define msg (new message% [parent frame][label "No events so far..."]))<br>
(new button% [parent frame]<br>                [label "&Click Me"]<br>                ; Callback procedure for a button click:<br>                [callback (lambda (button event)<br>                                              (send msg set-label "Button click"))])<br>
(send frame show #t)</div><div><br></div><div><br></div><div>The documentation <a href="http://docs.racket-lang.org/gui/button_.html">http://docs.racket-lang.org/gui/button_.html</a></div><div>says:</div><div>------------------------</div>
<div>If & occurs in label (when label includes a string), it is specially parsed; on Windows and Unix, the character following & is underlined in the displayed control to indicate a keyboard mnemonic. (On Mac OS X, mnemonic underlines are not shown.) The underlined mnemonic character must be a letter or a digit. The user can effectively click the button by typing the mnemonic when the control’s top-level-window contains the keyboard focus.</div>
<div>----------------------------</div><div>but for the above program "C" in the button label isn't underlined and typing "C" doesn't appear to be working as a keyboard mnemonic.</div><div><br>
</div><div>I'm I doing something wrong or is this a bug?</div><div><br></div><div>Thanks,</div><div>Harry </div></div>