From: nkd@gandalf.baylor.edu
Subject: [delphi] shifting focus
Date: Fri, 30 Jun 95 14:32 CST

To shift focus from one control to the next in the tab order
without using the tab key -- drop the following into the
OnKeyPress of the first control ( and every control you want 
to 'exit' with the <programmer specified> key ).

if Key = chr(<psk>) then
  SendMessage(<a form>.Handle,WM_NEXTDLGCTL,0,0);

<psk> = the ASCII code of a Key 

e.g. ENTER = 13

If anyone knows a better way -- please let me know.

	Neil Dholakia
	nkd@gandalf.baylor.edu

-------------------------------------------------------------------------------

From: Randall Siler <randall@primenet.com>
Subject: Re: [delphi] shifting focus
Date: Fri, 30 Jun 1995 16:53:34 -0700

Set the KeyPreview property of the parent form to true and place the
required code in the form's OnKeyPress event.

  Randall


