Solved

TShortcut To String and visa versa?

Posted on 2002-04-05
3
2,135 Views
Last Modified: 2007-11-27
Hi Experts.
If there a way i can convert a TShortcut to a string value, and back again (StringToShortcut...)?

The TShortcut value comes from the Hotkey vcl. I want to be able to ex:
Showmessage(ShortcutToStr(Hotkey1.Hotkey));

//and set the hotkey1.hotkey from a string:
Hotkey1.Hotkey := StrToShortcut('Ctrl+Shift+B');

Please help.

Cheers Dennis
0
Comment
Question by:Dennis9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6920552
what about shortcuttotext and texttoshortcut functions?
1
 
LVL 27

Accepted Solution

by:
kretzschmar earned 100 total points
ID: 6920553
see delphi-help for this above
0
 
LVL 1

Author Comment

by:Dennis9
ID: 6920573
Coolio it works. I had seen them a day then i totally forgot about them...
Thanks man

dkn
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question