Consultor Eletrônico



Kbase 16627: Code for PAGE-UP and PAGE-DOWN in an EDITOR widget
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Code for PAGE-UP and PAGE-DOWN in an EDITOR widget

Programmers can code their own page-up and page-down behavior in an
editor widget using the 4GL as follows:


ON PAGE-UP OF editor-1 IN FRAME frame-a DO:

ASSIGN editor-1:CURSOR-LINE = editor-1:CURSOR-LINE -
editor-1:INNER-LINES NO-ERROR.

END.


ON PAGE-DOWN OF editor-1 IN FRAME frame-a DO:

ASSIGN editor-1:CURSOR-LINE = editor-1:CURSOR-LINE +
editor-1:INNER-LINES NO-ERROR.

END.


The NO-ERROR is necessary to suppress error messages when the user
attempts to page past the top or bottom of the editor contents.

Progress Software Technical Support Note # 16627