Re: Enter as Tab in Dialogs
"Rob Thomas" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Organization | sita.co.za |
| Message-ID | <3F1BFE89.14731.1BB2E0A@localhost> |
Hi
On 21 Jul 2003 at 16:05, Garry Searle wrote:
> I set Keypreview to true
>
> procedure TPaymentsDlg.Edit1KeyPress(Sender: TObject; var Key: Char);
> begin
> showmessage('key pressed');
> if Key=Chr(VK_Return) Then Begin
> Perform(wm_NextDlgCtl,0,0);
> Key := #0;
> End;
> end;
>
> Any suggestions?
Try doing it in OnFormKeyDown instead.
Regards
Rob
--
Rob Thomas
(012) 482-2957 (Office hours)
082-652-1490 (All hours - try to be reasonable)
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges & Refill Kits for Your Epson at Myinks.com
Free shipping on orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5705&lp=home/epson.asp
http://us.click.yahoo.com/brYXfA/_xWGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->
CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
---------------------------------------------------------------
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/