Trap Ctrl-C in xBrowse

Trap Ctrl-C in xBrowse

Postby StefanHaupt » Fri Dec 07, 2012 3:47 pm

Hi,

trapping Ctrl-C inside xBrowse with :bKeyChar is not working, because it´s handled in the method :Keydown().
Is it possible to have it´s own action for this key ?

Why are there two keyhandlers in xBrowse, what is the difference between :Keydown() and :Keychar () ?
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Trap Ctrl-C in xBrowse

Postby Otto » Fri Dec 07, 2012 4:16 pm

Hello Stefan,
this is working for me:

:bKeyDown := { |nKey| Iif (GETKEYSTATE(VK_CONTROL), iif( nKey = 70, f_action(), ) , ) }

Hope you are well.
Best regards,
Otto
------------------------

Hallo Stefan,

Bitte entschuldige, dass ich mich nie gemeldet habe. Mit der Fertigstellung der "Metro-like-style" Version habe ich sehr viel Arbeit.
Aber ich glaube, ich schaffe es noch dieses Jahr mit dem Release.
Liebe Grüße
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: Trap Ctrl-C in xBrowse

Postby StefanHaupt » Tue Dec 11, 2012 8:40 am

Hello Otto,

:bKeyDown := { |nKey| Iif (GETKEYSTATE(VK_CONTROL), iif( nKey = 70, f_action(), ) , ) }



finally I found it :)
it´s only working here if I set :lAllowCopy to .f. otherwise the key is trapped in method :KeyDown() of xBrowse

----------------------
Hi Otto,

kein Problem, alles Weitere per private email :)
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests