FormKeyUp


2004-07-20 05:10:16 PM
cppbuilder56
I have a simple Form and some controls.
I handle the enter Key like this:
void __fastcall TMyForm::FormKeyUp(...)
{
if(Key == VK_RETURN)...
}
The problem came when the Form calls a ShowMessage. When I press enter to
close the ShowMessage, on the method FormKeyUp is fired.
But I don't want to fired the FormKeyUp method when a ShowMessage is already
showed.
How can I do to disable the FormKeyUp when the ShowMessage is called ?
Sam