Disable hotkey on vcl controls

I have TPageControl which I add and remove TTabsheet and there are 2 TEdits in TTabsheets that user can enter firstname and lastname when they do Tab Caption shows what they wrote.

But if user adds '&' somewhere in TEdit (and they are allowed to do) the tab gets char after '&' as (underlined) hotkey.

So, how to disable hotkey on a control.

+2


a source to share


1 answer


You don't need to turn off the display of the keyboard key on the control, you just need to double the ampersand character in the tab header so Windows knows it should be displayed as a character and not underline the next character.



+3


a source







All Articles