FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour terminate MDI child windows with <vk_escape>
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
terminate MDI child windows with <vk_escape>
Posted: Thu May 02, 2013 06:52 PM

I created an MDI window with 2 mdichild windows.

My child windows require clicking the close "X" button to shut them down.

how can I make the escape key shut down/close each MDICHILD windows without having to touch the mouse?

thank you

Don Lowenstein
www.laapc.com
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: terminate MDI child windows with <vk_escape>
Posted: Thu May 02, 2013 07:47 PM
Don

This code snipit should work..

Rick Lipkin

Code (fw): Select all Collapse
   // key handler to trap key strokes  ESC to quit  //
   oWind:bKeyDown := {|nKey| IF(nKEY = 27, oWIND:END(), ) }
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
Re: terminate MDI child windows with <vk_escape>
Posted: Thu May 02, 2013 08:42 PM

Worked like a charm.

Thanks Rick.

Don Lowenstein
www.laapc.com

Continue the discussion