Re: Control-c

Luis Carlos Díaz Otero <[email protected]> Fri, 17 Mar 2006 16:57:26 -0600 (CST)
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <[email protected]>
Try replacing ON ACTION cancel

     by

  ON KEY (CONTROL-C)

Gabriel Arimany <[email protected]> escribió:

    st1\:*{behavior:url(#default#ieooui) }                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





Cordial saludo:

Luis Carlos Díaz Otero


___________________________________________________________________________

Hay 10 clases de personas en el mundo: los que saben de números binarios y los que no.
___________________________________________________________________________


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/