Accelerator key issue

Giganews Newsgroups
Subject:Accelerator key issue
Posted by: Markus Humm
Date:Tue, 31 Aug 2010

Hello,

I've got a question regarding accelerator keys in my D2007 app.
e.g. a TBitButton or TToolButton get's a caption like &Add then you should
be able to invoke this button via Alt-A, correct?

But why does simply pressing A in my dialogue work as well? Is this "as designed"?
And: my dialogue is a wizard which uses a hidden TPageControl where some of the
pages contain TToolbars. Now one of those contains a button with H as accelerator key.
If I already passed this step and I'm on another tab of the page control which doesn't have
H as accelerator key I still can press H and invoke the functionality from several pages "ago".
Is this normal? Can this be changed? Is this dependant on my Multilizer based localization
(I guess no)?

Any hints?

Greetings

Markus

Replies