Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Oct : Changing accelerator key behaviour

www.cryer.info
Managed Newsgroup Archive

Changing accelerator key behaviour

Subject:Changing accelerator key behaviour
Posted by:"Francois Piette [ICS & Midware]" (francois.piet..@overbyte.be)
Date:Wed, 19 Oct 2005 11:55:38 +0200

I would like that in my application, the accelerator keys work only when the
user use the ALT key.

For example, I have a string grid which has goEditing option not selected.
When the user hit a key that correspond to an accelerator, without using
ALT, then string grid doesn't see the key (No OnKeyPress event) and the
button with the accelerator key has his OnClick triggered.

I need to get all alphanum keys in the OnKeyPress and have accelerator keys
working only in conjuction with ALT key.

Any idea ?

--
francois.piette@overbyte.be
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive