Solved

Acceleration keys on ActionToolBar do not work

Posted on 2002-03-22
9
180 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
Comment Utility
From memory, I don't think accelerator characters have ever worked on toolbars and toolbuttons, not automatically anyway.

J.
0
 

Author Comment

by:shrldu
Comment Utility
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
Comment Utility
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
 
LVL 4

Expert Comment

by:jsweby
Comment Utility
Can anyone else confirm the same behaviour?

J.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 44

Expert Comment

by:CrazyOne
Comment Utility
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
Comment Utility
So it seems it's a bug in D6.
0
 
LVL 44

Accepted Solution

by:
CrazyOne earned 50 total points
Comment Utility
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
Comment Utility
OK, thank you CrazyOne that you checked it out in D5. I assume it is a bug.
0
 
LVL 44

Expert Comment

by:CrazyOne
Comment Utility
You are welcome. :>)
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

728 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

9 Experts available now in Live!

Get 1:1 Help Now