Solved

TShortcut To String and visa versa?

Posted on 2002-04-05
3
2,118 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 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