ChrisJRutter
Member
Hi all
No doubt a simple one for you Progress gurus.
I am trapping the RETURN event globally (ON RETURN ANYWHERE) in the main procedure block but then want to actually apply it when the user is inside an editor widget.
I am finding the right widget ok in the RETURN trigger by using
IF FOCUS:TYPE = 'browse'
but then trying to
APPLY 'RETURN' TO FOCUS
RETURN NO-APPLY
doesn't give me a new line in the editor widget as I would expect.
(Note if I remove the ON RETURN ANYWHERE statement then pressing RETURN in the editor gives me a new line as I would expect)
I have just tried a quick window with an editor widget in it and when I APPLY 'RETURN' TO editor-1. Nothing seems to happen.
Any suggestions?
Cheers
No doubt a simple one for you Progress gurus.
I am trapping the RETURN event globally (ON RETURN ANYWHERE) in the main procedure block but then want to actually apply it when the user is inside an editor widget.
I am finding the right widget ok in the RETURN trigger by using
IF FOCUS:TYPE = 'browse'
but then trying to
APPLY 'RETURN' TO FOCUS
RETURN NO-APPLY
doesn't give me a new line in the editor widget as I would expect.
(Note if I remove the ON RETURN ANYWHERE statement then pressing RETURN in the editor gives me a new line as I would expect)
I have just tried a quick window with an editor widget in it and when I APPLY 'RETURN' TO editor-1. Nothing seems to happen.
Any suggestions?
Cheers