Re: [racket-users] GUI button% string label keyboard mnemonics

2021-01-13 Thread James Platt
One workaround you could do would be to duplicate the functionality of the button in a pulldown menu and define the keyboard shortcut there. I think it is good general practice anyway to put all functions in the pulldown menus and use other GUI elements only as shortcuts. This gives the user o

Re: [racket-users] GUI button% string label keyboard mnemonics

2021-01-09 Thread George Neuner
On 1/9/2021 3:20 AM, Dominik Pantůček wrote: > Maybe a stupid question ... > > Is  "close-icon" the name of the bitmap or a function that creates a > bitmap? I am using images/icons/misc: https://docs.racket-lang.org/images/Icons.html?q=close-icon#%28def._%28%28lib._images%2Ficons%2Fmisc..r

Re: [racket-users] GUI button% string label keyboard mnemonics

2021-01-09 Thread Dominik Pantůček
> Maybe a stupid question ... > > Is  "close-icon" the name of the bitmap or a function that creates a > bitmap? I am using images/icons/misc: https://docs.racket-lang.org/images/Icons.html?q=close-icon#%28def._%28%28lib._images%2Ficons%2Fmisc..rkt%29._close-icon%29%29 So it generates a bitma

Re: [racket-users] GUI button% string label keyboard mnemonics

2021-01-08 Thread George Neuner
On 1/6/2021 2:56 PM, Dominik Pantůček wrote: When a button is created like: (new button% (label "&Quit") ...) everything works as expected. The #\q key becomes a keyboard shortcut that triggers the callback correctly. But when the string label is given in the list of icon and label like: (n

[racket-users] GUI button% string label keyboard mnemonics

2021-01-06 Thread Dominik Pantůček
Hello Racketeers, it's been a while since I was doing some serious GUI work but for one of my current work projects the time has come and surprise surprise - troubles on the way :) When a button is created like: (new button% (label "&Quit") ...) everything works as expected. The #\q key becomes