How to shift Editor's viewport?

Skc

Member
Report Viewer - how to shift Editor's viewport?

V9.1C Progress Windows

I created a Large Editor in a frame for the purpose of viewing reports. The Editor is as wide as the screen. But the report can be wider than the Editor's width.

What I want to accomplish is that when the user presses cursor-right key, I want to shift the viewport to see more of the report on the right. It's similar to, when the user click the right-arrow button of the horizontal scrollbar of the editor.

Is it possible for this to be accomplished? :confused: Thanks for any ideas.

Regards
Skc
 
Have you disabled the editor? That's the only way I can prevent cursor-right working.

If you don't want changes to be allowed to the editor, setting the READ-ONLY attribute to TRUE is a better bet.
 
Below is part of my code:

assign mreport:read-only in frame freport = YES
mreport:sensitive in frame freport = YES
frame freport:title = "View " + sfile + " "
mreport:FONT = 3
mstat = mreport:read-file(sfile) in
frame freport.

"mreport" is the Editor-widget. Read-only is enabled. Normally, cursor-right key will do the standard ie. the cursor will go 1 space to the right. That's the default. But I would like that if right-key be pressed, the cursor need not move, but the report itself should scroll 1 (or more) spaces to the LEFT. BTW, mreport is the only widget in the frame.



Norman Biggar said:
Have you disabled the editor? That's the only way I can prevent cursor-right working.

If you don't want changes to be allowed to the editor, setting the READ-ONLY attribute to TRUE is a better bet.
 
Back
Top