[Stackoverflow] [Progress OpenEdge ABL] OpenEdge 10.2A - How to apply default RETURN on Editor widget even if a general code for RETURN with ANYWHERE

Status
Not open for further replies.
A

aza

Guest
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.


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...
 
Status
Not open for further replies.
Top