home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / text / edit / FrexxEdA.lha / FrexxEd / fpl / ScrollAll.FPL < prev    next >
Text File  |  1995-07-19  |  448b  |  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.