Control-c
"Gabriel Arimany" <[email protected]> Fri, 17 Mar 2006 16:28:48 -0800
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <000001c64a22$f18422b0$b928b1c0@GTVNP028> |
Hello,
I don't know how can I block the key control-c to be interpreted as a
cancel in FGLGUI=0, when I run a program in graphic mode it's perfect,
but when I use text mode, the control-c = cancel.
Here is an example:
example.4gl
DEFINE cdepto SMALLINT
MAIN
OPEN FORM ventana FROM "example"
DISPLAY FORM ventana
INPUT BY NAME cdepto
ON ACTION cancel
MESSAGE "canceled!!"
EXIT INPUT
SLEEP 2
ON KEY ( CONTROL-C )
MESSAGE "Control-C!!"
SLEEP 2
END INPUT
CLOSE FORM ventana
END MAIN
example.per
SCREEN
{
Depto: [d1]
}END
ATTRIBUTES
d1 = FORMONLY.cdepto TYPE SMALLINT, COLOR=CYAN;
END
Thank's for your help and time
Gabriel Arimany
Grupo Unipharm