1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

OpenEdge 10.2A - How to apply default RETURN on Editor widget even if a general code for...

Discussão em 'StackOverflow' iniciado por fdantas, Setembro 1, 2018.

  1. fdantas

    fdantas Administrator Moderador

    I have a code for RETURN for all widgets in a window which basically makes it as if TAB is pressed. It works just fine but I want the default functionality of RETURN (Break current line into two lines) for EDITOR widgets.

    I have tried to add

    APPLY "ENTER" TO SELF.


    or

    APPLY "RETURN" TO SELF.


    or

    APPLY "CTRL-J" TO SELF. /*Ctrl-Enter*/


    for EDITOR widgets but when pressed RETURN in an EDITOR it just does not do anything. It stays as if RETURN is not pressed.

    ON RETURN OF {&WINDOW-NAME} ANYWHERE
    DO:
    IF SELF:TYPE="EDITOR" THEN
    DO:
    APPLY "ENTER" TO SELF. /*Does NOT Work*/
    END.
    ELSE IF SELF:TYPE = "BUTTON" THEN
    DO:
    APPLY "Choose".
    END.
    ELSE
    DO:
    APPLY "Tab".
    RETURN NO-APPLY.
    END.
    END.


    Is there a way to do it?

    Continue reading...

Compartilhe esta Página