Strange behavior of ESC KEY

Strange behavior of ESC KEY

Postby Arindam » Fri Apr 27, 2007 1:32 pm

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
Arindam
 
Posts: 44
Joined: Sat Jul 29, 2006 5:03 pm
Location: Kolkata, India

Postby James Bott » Fri Apr 27, 2007 8:21 pm

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

ACTIVATE DIALOG oDlg;
VALID !GETKEYSTATE( VK_ESCAPE )
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 39 guests

cron