Code: Alles auswählen
@ 14,68 DCGET Buchtext ;
GETOBJECT oDCBtxt ;
TABSTOP ;
TABGROUP XBP_WITHIN_GROUP ;
KEYBLOCK {|xbeK_Enter,b,oDCBtxt|myfunc1()}
Ich möchte die ENTER-Taste abfangen und einen SETAPPFOCUS(oDCPUSH1)
setzen.
Gruß
Alfred
Moderator: Moderatoren
Code: Alles auswählen
@ 14,68 DCGET Buchtext ;
GETOBJECT oDCBtxt ;
TABSTOP ;
TABGROUP XBP_WITHIN_GROUP ;
KEYBLOCK {|xbeK_Enter,b,oDCBtxt|myfunc1()}
Code: Alles auswählen
KEYBLOCK {|[color=red]nKey[/color],b,oDCBtxt|myfunc1([color=red]nKey[/color])}
Code: Alles auswählen
FUNCTION myfunc1(nKey)
IF nKey = xbeK_Enter
* was machen ...
Code: Alles auswählen
KEYBLOCK {|[color=red]nKey[/color],b,oDCBtxt|If(nKey=xbeK_Enter,myfunc1([color=red]nKey[/color]),nil)}
Code: Alles auswählen
KEYBLOCK{|nKey,b,oDCGETBtxt|if(nKey=13,DC_ReadGuiEvent(DCGUI_MOVE_DOWN,GetList),nil)}