--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Unsubscribe: harbou...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbou...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbou...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbou...@googlegroups.com.
I use this:
hb_gtInfo( HB_GTI_INKEYFILTER, { | nKey | MyInkeyFilter( nKey
) } )
#include "hbgtinfo.ch"
#include "inkey.ch"
FUNCTION MyInkeyFilter( nKey )
LOCAL nBits, lIsKeyCtrl
nBits := hb_GtInfo( HB_GTI_KBDSHIFTS )
lIsKeyCtrl := ( nBits == hb_BitOr( nBits, HB_GTI_KBD_CTRL ) )
SWITCH nKey
CASE HB_K_CLOSE ; RETURN K_ESC
//CASE HB_K_RESIZE ; wvgSetAppWindow():InvalidateRect();
wvgSetAppWindow():Refresh(); RETURN NIL
//CASE HB_GTE_RESIZED ; wvgSetAppWindow():InvalidateRect();
wvgSetAppWindow():Refresh(); RETURN NIL
CASE K_MWBACKWARD ; RETURN K_DOWN
CASE K_MWFORWARD ; RETURN K_UP
CASE K_RBUTTONDOWN ; RETURN K_ESC
CASE K_RBUTTONUP ; RETURN NIL
CASE K_RDBLCLK ; RETURN K_ESC
CASE K_TAB ; RETURN K_DOWN
CASE K_SH_TAB ; RETURN K_UP
CASE K_CTRL_V
IF lIsKeyCtrl
hb_GtInfo( HB_GTI_CLIPBOARDPASTE )
RETURN NIL
ENDIF
CASE K_CTRL_C
IF lIsKeyCtrl
IF GetActive() != NIL
hb_gtInfo( HB_GTI_CLIPBOARDDATA, Transform(
GetActive():VarGet(), "" ) )
RETURN NIL
ENDIF
ENDIF
ENDSWITCH
RETURN nKey
José M. C. Quintas