开发者

Underline letter in a button

开发者 https://www.devze.com 2023-03-30 23:25 出处:网络
In my form, I have four buttons that do different tasks. The button.Text field is set开发者_如何转开发 as &Next Project, so the N will be underlined.

In my form, I have four buttons that do different tasks. The button.Text field is set开发者_如何转开发 as &Next Project, so the N will be underlined. In the preview of the form, it shows up with the N underlined. Yet when I run my program, the text shows up with no underlining.


Press Alt.

Those keyshortcuts are only working in combination with the Alt-Key, and therefor only show up if it is pressed.

Also there seem to be two ways to always show the Mnemonics:

  1. Change the Windows Desktop/Theme Settings:
    • Right Click Desktop -> Properties
    • Got to the Appereance Tab -> Effects
    • Uncheck "Hide Underlined letters for keyboard navigation until I press the ALT Key"
  2. Change the System-Parameters via an API-Call.
0

精彩评论

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

关注公众号