FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Escape
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Escape
Posted: Fri Jan 16, 2009 11:01 AM

How I can erase to user the possibility to go out from dialog pressing escape button ?

Best Regards, Saludos



Falconi Silvio
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Re: Escape
Posted: Fri Jan 16, 2009 11:03 AM

Silvio,

maybe a odlg:bValid which returns .F. if Lastkey == VK_ESCAPE?

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
Re: Escape
Posted: Fri Jan 16, 2009 11:21 AM

Silvio

I try to give the cancel button focus :

ACTIVATE DIALOG oDlg;
VALID IIF(GETKEYSTATE(VK_ESCAPE) , (oButCancel:Setfocus() , .F.) , .T. )

Frank

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: Escape
Posted: Fri Jan 16, 2009 12:42 PM

thanks demont
NOw Run ok

Best Regards, Saludos



Falconi Silvio

Continue the discussion