I've tried my best and cannot figure out what happened here. It worked fine in Delphi 4. After upgrading to Delphi 2009, I don't know if this is the way it is supposed to work, or if it's a problem:
This is what my program's menu looks like in Design Mode under Delphi 2009:
Notice that every word in the Main Menu and the File submenu...
dumb question here, but I can't figure it out...I have a label with an accelerator key set (e.g. "&Add") and I want to give focus to a textbox when that shortcut, Alt-A, is pressed. what event does this correspond to? I tried the click event but that didn't do anything...
edit: found my own answer - it sets focus to the control that is ...
I am trying to change a few hot-keys in the java application I am wokring on and it seems that the system I am using may not work with three button key combinations. We currently have a JMenuItem item and we set the hotkey with a call like this:
menuItem.setAccelerator(getAcceleratorKey(accelerator));
And here is the getAcceleratorKe...