New feature for DCGET KEYBLOCK
Posted: Thu Mar 18, 2010 8:18 am
Hi Roger,
if i define a KEYBLOCK for DCGET, i can't reach that the XbpSLE:keyboard() is called. What about testing the result of the codeblock to switch this behaviour?
Code now:
something like this:
or using DCGUI_IGNORE?
In this case i could overwrite Xbase-Behaviour (exp. Strg-A).
if i define a KEYBLOCK for DCGET, i can't reach that the XbpSLE:keyboard() is called. What about testing the result of the codeblock to switch this behaviour?
Code now:
Code: Select all
IF Valtype(::keyBlock) = 'B' .AND. !Empty(nKey)
Eval(::keyBlock,nKey,nil,self)
ENDIF
IF ! lHandled
RETURN ::XbpSle:Keyboard( nKey )
ENDIF
Code: Select all
IF Valtype(::keyBlock) = 'B' .AND. !Empty(nKey)
if Eval(::keyBlock,nKey,nil,self)
lHandled := .t.
endif
ENDIF
IF ! lHandled
RETURN ::XbpSle:Keyboard( nKey )
ENDIF
In this case i could overwrite Xbase-Behaviour (exp. Strg-A).