开发者

Disable hotkey on vcl controls

开发者 https://www.devze.com 2022-12-27 11:17 出处:网络
I do have a TPageControl t开发者_如何学Chat I do add and remove TTabsheet\'s from, and in the TTabsheets there are 2 TEdit\'s that the user can type firstname and lastname, when they do the Tab Captio

I do have a TPageControl t开发者_如何学Chat I do add and remove TTabsheet's from, and in the TTabsheets there are 2 TEdit's that the user can type firstname and lastname, when they do the Tab Caption does show what they have written.

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

So how do I disable a hotkey on a control.


You don't need to disable keyboard access key display on the control, you just need to double the ampersand character in the tab caption to let Windows know it should be displayed as a character instead of underlining the following character.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号