terminate MDI child windows with <vk_escape>

terminate MDI child windows with <vk_escape>

Postby don lowenstein » Thu May 02, 2013 6: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
User avatar
don lowenstein
 
Posts: 197
Joined: Mon Oct 17, 2005 9:09 pm

Re: terminate MDI child windows with <vk_escape>

Postby Rick Lipkin » Thu May 02, 2013 7:47 pm

Don

This code snipit should work..

Rick Lipkin

Code: Select all  Expand view

   // key handler to trap key strokes  ESC to quit  //
   oWind:bKeyDown := {|nKey| IF(nKEY = 27, oWIND:END(), ) }
 
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: terminate MDI child windows with <vk_escape>

Postby don lowenstein » Thu May 02, 2013 8:42 pm

Worked like a charm.

Thanks Rick.
Don Lowenstein
www.laapc.com
User avatar
don lowenstein
 
Posts: 197
Joined: Mon Oct 17, 2005 9:09 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 104 guests