Category : Modula II Source Code
Archive   : SCROLL.ZIP
Filename : SCROLL.DEF

 
Output of file : SCROLL.DEF contained in archive : SCROLL.ZIP
DEFINITION MODULE Scroll ;

(* Window scrolling module for JPI TopSpeed Modula-2 *)
(* Roy Harvey 1988 (bix id "royharv") *)
(* Placed in the public domain - good luck *)

IMPORT Window ;

TYPE
WrLnProc = PROCEDURE(CARDINAL) ;
ScrollData = RECORD ;
TopToBottom,
NumberOfScrollableEntries,
First,
High : CARDINAL ;
HighOn : BOOLEAN ;
LowPaletteEntry,
HighPaletteEntry : Window.PaletteRange ;
WriteOneProc : WrLnProc ;
END ;
GeneralScrollCmd =
(ScrHome, ScrEnd, ScrUp, ScrDown, ScrPgUp, ScrPgDown) ;
GeneralHighCmd = (WLineFirst, WLineLast, WLineNext, WLinePrev) ;

VAR
(* Defaults Palette, LowPaletteEntry, and HighPaletteEntry *)
DfltP : Window.PaletteDef ;
DfltLowPE, DfltHighPE : Window.PaletteRange ;

PROCEDURE ScrollInit (W: Window.WinType; VAR ScrRec : ScrollData) : BOOLEAN ;

PROCEDURE ScrollReset (W: Window.WinType; VAR ScrRec : ScrollData) : BOOLEAN ;

PROCEDURE GeneralScroll (W: Window.WinType ; VAR ScrRec : ScrollData ;
ScrollBy : GeneralScrollCmd) : BOOLEAN ;

PROCEDURE ScrollTo (W: Window.WinType ; VAR ScrRec : ScrollData ;
ScrollToLine : CARDINAL) : BOOLEAN ;

PROCEDURE GeneralHighlight (W: Window.WinType ; VAR ScrRec : ScrollData ;
ScrollBy : GeneralHighCmd) : BOOLEAN ;

PROCEDURE HighAt(W: Window.WinType ; VAR ScrRec : ScrollData ;
HighAtLine : CARDINAL) : BOOLEAN ;

END Scroll.


  3 Responses to “Category : Modula II Source Code
Archive   : SCROLL.ZIP
Filename : SCROLL.DEF

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/