FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SETKEY in DIALOG noMODAL
Posts: 1
Joined: Mon Aug 19, 2013 12:56 PM
SETKEY in DIALOG noMODAL
Posted: Mon Aug 19, 2013 02:03 PM
Hi,

I have a question and would like to know if anyone could help me.

I'm creating a NOMODAL DIALOG, DIALOG and this should be be set hotkeys.

For this I am using the function setkey ().

But the problem is that when the window is closed the key features remain unset.

I wonder if there is any method that executes after the dialog is closed so I can get the functionality of the shortcut keys.

MODAL DIALOG in the type, I did so, but with the NOMODAL'm not finding a way to solve this problem.

Code (fw): Select all Collapse
   bKeyF4  := SetKey( VK_F4 )
   
   SetKey(VK_F4,{|| Eval(oButCom:bAction)})
     
   Activate Dialog oDlg VALID !Esc() 
   SetKey(VK_F4, bKeyF4)
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: SETKEY in DIALOG noMODAL
Posted: Mon Aug 19, 2013 02:13 PM

Put SetKey(VK_F4, bKeyF4) inside VALID clause so it will execute after the DIALOG is closed.

EMG

Continue the discussion