home *** CD-ROM | disk | FTP | other *** search
- Date: April 1, 1985
- From: Philip R. Burns
- To: PIBMENUS users
-
-
- This file contains fixes to the PIBMENUS routines so that they
- will work correctly with version 3.0 of Turbo Pascal.
-
- First, add the following global variable declaration to the others
- in PIBMENUS:
-
- Menu_Turbo_Version : Integer (* Version of Turbo Pascal *);
-
- This variable will take on values of 2 or 3, depending upon the
- version of Turbo Pascal. You may set this variable (to 2 or 3)
- in the initialization code of your program, or you may call the
- following procedure, which will also set the variable:
-
- ----------------------------------------------------------------------------
-
- (*----------------------------------------------------------------------*)
- (* Set_Turbo_Version --- Set version of Turbo Pascal *)
- (*----------------------------------------------------------------------*)
-
- Procedure Set_Turbo_Version;
-
- (*----------------------------------------------------------------------*)
- (* *)
- (* Procedure: Set_Turbo_Version *)
- (* *)
- (* Purpose: Set version of Turbo Pascal *)
- (* *)
- (* Calling Sequence: *)
- (* *)
- (* Set_Turbo_Version; *)
- (* *)
- (* Calls: Window *)
- (* *)
- (* Remarks: *)
- (* *)
- (* This routine heuristically determines which version (2 or 3) *)
- (* of Turbo Pascal it has been compiled with. This information *)
- (* is needed to save the coordinates of the current window when *)
- (* performing a screen save. *)
- (* *)
- (*----------------------------------------------------------------------*)
-
- BEGIN (* Set_Turbo_Version *)
-
- (* Set an unusual window *)
- Window( 53, 23, 78, 25 );
-
- IF ( MEM[ Dseg : 4 ] = 52 ) AND
- ( MEM[ Dseg : 5 ] = 22 ) THEN
- Menu_Turbo_Version := 3
- ELSE
- Menu_Turbo_Version := 2;
-
- Window( 1, 1, 80, 25 );
-
- END (* Set_Turbo_Version *);