Solved

TControlActionLink

Posted on 2002-05-10
2
197 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

10 Experts available now in Live!

Get 1:1 Help Now