delphi - How to get a shortcut string from TShortCut in an action? -
i'm using tactionmanager
, each action has keyboard shortcut
assigned it. display text represents keyboard shortcut user. example, f4
or ctrl+f
or ctrl+shift+s
. however, tshortcut
defined as:
type tshortcut = low(word)..high(word);
how can obtain user-readable string represents shortcut assigned action?
i'm answering own question q/a style.
there's built-in function called shortcuttotext()
converts given tshortcut
readable representation. on other hand, there's texttoshortcut()
works other way around, converting string tshortcut
, given it's valid shortcut value.
Comments
Post a Comment