Category : Pascal Source Code
Archive   : TP-MENUS.ZIP
Filename : TESTMENU.PAS
{$I RVSONOFF.PAS}
{$I REP_CHAR.PAS}
{$I CENTER.PAS}
{$I MENU.PAS}
VAR
X,Y,Z : INTEGER;
HEAPTOP : ^INTEGER;
LIST : MENU_SELECTIONS;
HLCHAR : HL_SELECTIONS;
BEGIN
GOTOXY(1,1);
FOR Y := 1 TO 25 DO
WRITELN('************************ THIS IS ORIGINAL SCREEN ************************');
LIST[1] :='Basic';
LIST[2] :='Crosstalk';
LIST[3] :='DBase';
LIST[4] :='Fortran';
LIST[5] :='Lotus123';
LIST[6] :='Masm';
LIST[7] :='Turbo';
LIST[8] :='Utilities';
LIST[9] :='Wordstar';
LIST[10]:='Exit->DOS';
LIST[11]:='Test';
LIST[12]:='TYping Tu';
LIST[13]:='Exit';
LIST[14]:='';
HLCHAR[1] :='B';
HLCHAR[2] :='C';
HLCHAR[3] :='D';
HLCHAR[4] :='F';
HLCHAR[5] :='1';
HLCHAR[6] :='M';
HLCHAR[7] :='T';
HLCHAR[8] :='U';
HLCHAR[9] :='W';
HLCHAR[10] :='E';
HLCHAR[11] :='T';
HLCHAR[12] :='Y';
HLCHAR[13] :='E';
MARK(HEAPTOP); { RECORD TOP OF HEAP BEFORE USING }
{ USING HEAPSPACE TO STORE SCREEN(S) }
Z:=MENU(LIST,HLCHAR,' MENU ',0,0,0,10);
RELEASE(HEAPTOP); { FREES HEAPSPACE USED TO STORE SCREEN(S)}
GOTOXY(1,24); { EXAMPLE OF FUNCTION RETURN }
CLREOL;
WRITELN('FUNCTION RETURNS # OF MENU ITEM THEN RESTORES PREVIOUS SCREEN. CURRENT # = ',Z);
END.
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/