D,

Yep, that was it..... Thanks for the pointer.....

------------------------------------------------------------------------
--Donovan [[EMAIL PROTECTED]]
Donovan J. Edye [www.edye.wattle.id.au]
Namadgi Systems, Delphi Developer [www.namsys.com.au]
Voice: +61 2 6285-3460 Fax: +61 2 6285-3459
TVisualBasic = Class(None);
Heard just before the 'Big Bang': "...Uh Oh...."
------------------------------------------------------------------------
GXExplorer [http://www.gxexplorer.org] Freeware Windows Explorer
replacement. Also includes freeware delphi windows explorer components.
------------------------------------------------------------------------


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of David O'Brien
Sent: Monday, 13 November 2000 10:42
To: Multiple recipients of list delphi
Subject: RE: [DUG]: [Q] KeyPreview, KeyDown, DB Aware Controls?


Isn't it the KeyUp event that goes through to the control?

Dave.

-----Original Message-----
From: Donovan J. Edye [mailto:[EMAIL PROTECTED]]
Sent: Monday, 13 November 2000 10:26 a.m.
To: Multiple recipients of list delphi
Subject: [DUG]: [Q] KeyPreview, KeyDown, DB Aware Controls?


G'Day,

I need to do some special processing for keys on the numeric keypad. Simple:

KeyPrevew := TRUE;

And then in the KeyDown event for the form

case key of
   VK_Num0..VKNum9 : begin
                                    Key := 0;   //Swallow key
                                    //Do my processing
                               end;
end;

However even though I am "swallowing" the keystroke it is still getting
processed by the DB aware control I am currently focussed on (DBEdit, DGGrid
etc.) How do I stop the keystroke getting "through to" the DB aware control?

TIA

------------------------------------------------------------------------
--Donovan [[EMAIL PROTECTED]]
Donovan J. Edye [www.edye.wattle.id.au]
Namadgi Systems, Delphi Developer [www.namsys.com.au]
Voice: +61 2 6285-3460 Fax: +61 2 6285-3459
TVisualBasic = Class(None);
Heard just before the 'Big Bang': "...Uh Oh...."
------------------------------------------------------------------------
GXExplorer [http://www.gxexplorer.org] Freeware Windows Explorer
replacement. Also includes freeware delphi windows explorer components.
------------------------------------------------------------------------

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to