SETKEY in DIALOG noMODAL

SETKEY in DIALOG noMODAL

Postby rafiukspp » Mon Aug 19, 2013 2: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: Select all  Expand view

   bKeyF4  := SetKey( VK_F4 )
   
   SetKey(VK_F4,{|| Eval(oButCom:bAction)})
     
   Activate Dialog oDlg VALID !Esc()
   SetKey(VK_F4, bKeyF4)    
   
 
rafiukspp
 
Posts: 1
Joined: Mon Aug 19, 2013 12:56 pm

Re: SETKEY in DIALOG noMODAL

Postby Enrico Maria Giordano » Mon Aug 19, 2013 2:13 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

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