[DUG] Customised component and the Enter Key

Phil Middlemiss phil at tumonz.co.nz
Wed Feb 14 14:16:17 NZDT 2007


Is your customised component responding to the OnKeyUp to check for the 
Enter key? If this is the case then perhaps the key-up message is being 
transmitted to your component since the other screen is now closed - 
although I would have thought that could only happen if the other window 
was responding immediately to an OnKeyDown as opposed to a KeyPress 
event. Could be worth checking.

Phil.

Robert martin wrote:
> Hi All
>
> We have a customised component that pops open when the enter key is 
> pressed.  However sometimes when an Enter key is pressed in another 
> screen (open over the screen with our component) and the Enter key is 
> pressed on a close button, the Enter key seems to travel into our 
> component (which has focus after the other screen is closed) and pop 
> it open.  This is undesirable :)
>
> Any suggestions?
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phil.vcf
Type: text/x-vcard
Size: 250 bytes
Desc: not available
Url : http://ns3.123.co.nz/pipermail/delphi/attachments/20070214/87682d5c/phil.vcf


More information about the Delphi mailing list