Solved

Acceleration keys on ActionToolBar do not work

Posted on 2002-03-22
9
181 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

773 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