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
Solved

Acceleration keys on ActionToolBar do not work

Posted on 2002-03-22
9
182 Views
Last Modified: 2010-04-05
The acceleration keys which I define for actions created in ActionManager do not work when I drop the actions on ActionToolBar created also in ActionManager.
I use Delphi6 Pro with service pack 2.

0
Comment
Question by:shrldu
  • 4
  • 3
  • 2
9 Comments
 
LVL 4

Expert Comment

by:jsweby
ID: 6888732
From memory, I don't think accelerator characters have ever worked on toolbars and toolbuttons, not automatically anyway.

J.
0
 

Author Comment

by:shrldu
ID: 6888969
Well, when you add a ToolButton to a ToolBar and then assign an action to it, the action's caption does not show on ToolButton. But it shows when you drop the action on ActionToolBar which suggests (at least I was suggested by this behaviour) that acceleration keys should work for actions on ActionToolBar. I'm not sure if action on ActionToolBar is equivalent with a ToolButton? The behaviour I mentioned proves it isn't - at least to some extent.
Nevertheless if you can confirm it is really a regular behaviour I will accept your answer.
Thank you.
0
 

Author Comment

by:shrldu
ID: 6888975
Well, when you add a ToolButton to a ToolBar and then assign an action to it, the action's caption does not show on ToolButton. But it shows when you drop the action on ActionToolBar which suggests (at least I was suggested by this behaviour) that acceleration keys should work for actions on ActionToolBar. I'm not sure if action on ActionToolBar is equivalent with a ToolButton? The behaviour I mentioned proves it isn't - at least to some extent.
Nevertheless if you can confirm it is really a regular behaviour I will accept your answer.
Thank you.
0
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.

 
LVL 4

Expert Comment

by:jsweby
ID: 6888976
Can anyone else confirm the same behaviour?

J.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 6890425
Well I don't have D6 so I tested in D5 using TActionList, TToolBar, TToolButton. I assigned accelator key to my action caption and put a ShowMessage in the Action OnExecute and it worked for me. I used the letter "a" as the accelator and when I did ALt+A the message box appeared.


The Crazy One
0
 

Author Comment

by:shrldu
ID: 6890837
So it seems it's a bug in D6.
0
 
LVL 44

Accepted Solution

by:
CrazyOne earned 50 total points
ID: 6890977
Could be. I forgot to mention that you can force the caption to show on the TToolButton by setting the TToolBar property "ShowCaptions" to True. Which is what I did. D5 doesn't seem to have TActionToolBar or TActionToolButton or at least I haven't found it anyway so I don't have away to test these componenets since I don't have D6.
0
 

Author Comment

by:shrldu
ID: 6892031
OK, thank you CrazyOne that you checked it out in D5. I assume it is a bug.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 6892155
You are welcome. :>)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Title # Comments Views Activity
Working with hours 3 65
how to resize animated Gif image in delphi ? 1 35
DBGrid or StringGrid ? 6 104
Sending files from  idTcpServer Socket to idTcpClient 2 44
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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

839 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