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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
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
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
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
All Courses

From novice to tech pro — start learning today.