home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Editor / DVD!FX17.LHA / FrexxEd / fpl / ScrollAll.FPL < prev    next >
Encoding:
Text File  |  1995-01-26  |  448 b   |  16 lines

  1. export int ScrollAll(int direction)
  2. {
  3.   int inputid=GetEntryID();        // Current entry
  4.   int view_count=ReadInfo("views");
  5.  
  6.   while (view_count--) {
  7.     CurrentBuffer(NextView());        // Make next view the current buffer
  8.     ScrollDown(direction);        // Scroll
  9.     Status();                // Update the status line
  10.   }
  11.   CurrentBuffer(inputid);        // Restore the initial entry
  12. }
  13.  
  14. AssignKey("ScrollAll(-1);", "Shift '0x3E'");
  15. AssignKey("ScrollAll(1);", "Shift '0x1E'");
  16.