Strange behavior of ESC KEY

Post Reply
Arindam
Posts: 44
Joined: Sat Jul 29, 2006 5:03 pm
Location: Kolkata, India

Strange behavior of ESC KEY

Post by Arindam »

Hi Eeverybody,

The finding problem is:

1) If I press the ESC key in get field, it is behaved like Enter key. If I check with Lastkey(), the return value is 13, instead of 27.

2) In normal case if I press Enter key, in any get field, the cursor moved to next get field. But if I press ESC key, the return value is 13 and active window goes off.

What is the solution?

With regards,
Arindam
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

To prevent the user from exiting by using the Esc key:

ACTIVATE DIALOG oDlg;
VALID !GETKEYSTATE( VK_ESCAPE )
Post Reply