Solved

TControlActionLink

Posted on 2002-05-10
2
201 Views
Last Modified: 2010-04-04
Hi All,
Does anyone know how to use a TControlActionLink?

I've got a TToolButton that is linked to a TActionList.  I've set the Hint and the ShortCut for the Action but when I move the mouse over the button, I get the Hint AND the ShortCut.  e.g.  "Paste (Ctrl+V)"

I've know that TControlActionLink.DoShowHint gets called and modifies the Hint to add the ShortCut.  I know that I need to override the DoShowHint so that this doesn't happen but what I don't know is how to associate my overridden TControlActionLink.DoShowHint function with the action.  How does it all tie in together???

A small example would be great.

Cheers,
M.
0
Comment
Question by:MMathieson
2 Comments
 
LVL 2

Accepted Solution

by:
mikepj earned 300 total points
ID: 7003306
If you must do that, I would think it may be easier to remove the shortcut for the action and simulate that yourself in OnKeyDown.
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9005556
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from mikepj

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 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