Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Oct : How to change RETURN keystroke to TAB keystroke

www.cryer.info
Managed Newsgroup Archive

How to change RETURN keystroke to TAB keystroke

Subject:How to change RETURN keystroke to TAB keystroke
Posted by:"Aivar Annamaa" (aivar.annam..@reg.agri.ee)
Date:Mon, 31 Oct 2005 11:35:20 +0200

Hi!

With most controls I can substitute RETURN with TAB when I do this in
Form.IsShortCut event:

if (Message.CharCode = VK_RETURN) then
begin
     Message.CharCode := VK_TAB;
end;

But this doesn't work when TDBGrid's inplace editor is focused. Probably
editor gets the keystroke before IsShortCut. How can I tweak the keystroke
BEFORE it's presented to TDBGrid's inplace editor?

thank you!

Aivar

Replies:

www.cryer.info
Managed Newsgroup Archive