FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Trap Ctrl-C in xBrowse
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Trap Ctrl-C in xBrowse
Posted: Fri Dec 07, 2012 03: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
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Trap Ctrl-C in xBrowse
Posted: Fri Dec 07, 2012 04: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

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Trap Ctrl-C in xBrowse
Posted: Tue Dec 11, 2012 08: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

Continue the discussion