delphiradio-grouponkeypress

how to respond to a key press when focused on a radiogroup in delphi


In delphi: How can you respond to a key press when the current focus is on a radiogroup which does not have an onkeypress event. I was hoping to use the forms onkeypress event but it doesnt see to fire.


Solution

  • You can make this possible by setting the form's KeyPreview property to True.

    However, I'm not sure you are actually doing things right, since this is a fairly uncommon problem.

    You didn't write what keyboard shortcut you want to respond to. But please remember that