FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Closing Window (MDI-Child) with Escape
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Closing Window (MDI-Child) with Escape
Posted: Fri Dec 12, 2008 10:46 AM

Hi,

with wbrowse, a MDI-Child window will close, if you press "ESC", but a xbrowse-window won't. Is there a possibility to close a xbrowse-window also with "ESC"?

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Closing Window (MDI-Child) with Escape
Posted: Mon Dec 15, 2008 07:33 AM

Gilbert,

oBrw:bKeyChar = { | nKey | If( nKey == VK_ESCAPE, oWnd:End(), nKey ) }

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Closing Window (MDI-Child) with Escape
Posted: Mon Dec 15, 2008 09:18 AM

Antonio,

thanks, works fine! :D

Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de

Continue the discussion