Solved

Shortcuts won't work

Posted on 2000-03-16
4
189 Views
Last Modified: 2010-04-04
In a project I'm working on I have a TToolButton with the Style property set to tbsDropDown. In the associated DropdownMenu I have set the ShortCut property for some of the Items but none of them work. Does anybody have any suggestions about what I may be doing wrong?
0
Comment
Question by:Theophilus
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Epsylon
ID: 2625162
Same problem here so I tried it with Actions and then it works.
0
 

Expert Comment

by:PetriWork
ID: 2627125
Yes, you need to use Actions to get it to work again. The long path would be to trap when the user presses down keys would be to trap the message and process it manually but that's purelly a waste of time IMHO.
That Actions actually are a good thing is only a bonus =)

Peter
0
 

Expert Comment

by:Dantry
ID: 2630640
The toolbutton couldn't response the keydown. It must be activation by the mouse click.

If you activate it and its popup menu disappear, the shortcuts will response the only one key described by the shortcuts, such as the A.

Notice it not response the combination keys, such as the Ctrl+A.
0
 
LVL 13

Accepted Solution

by:
Epsylon earned 100 total points
ID: 2637005
Use Actions!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

932 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now