Acceleration keys on ActionToolBar do not work

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.

shrlduAsked:
Who is Participating?
 
CrazyOneConnect With a Mentor Commented:
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
 
jswebyCommented:
From memory, I don't think accelerator characters have ever worked on toolbars and toolbuttons, not automatically anyway.

J.
0
 
shrlduAuthor Commented:
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
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
shrlduAuthor Commented:
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
 
jswebyCommented:
Can anyone else confirm the same behaviour?

J.
0
 
CrazyOneCommented:
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
 
shrlduAuthor Commented:
So it seems it's a bug in D6.
0
 
shrlduAuthor Commented:
OK, thank you CrazyOne that you checked it out in D5. I assume it is a bug.
0
 
CrazyOneCommented:
You are welcome. :>)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.