TLabel displays accelerator keys even when the UI state says not to

后端 未结 3 618
故里飘歌
故里飘歌 2021-02-09 09:35

With default Windows settings, accelerator keys are not meant to be shown on dialogs until the user presses the ALT key.

Delphi\'s TLabel control

3条回答
  •  名媛妹妹
    2021-02-09 10:09

    You could use TStaticText instead of TLabel.

    From the doc page:

    Use TStaticText instead of TLabel when the component's accelerator key must belong to a windowed control.

提交回复
热议问题