home *** CD-ROM | disk | FTP | other *** search
- DEFINT A-Z
-
- '$INCLUDE: 'Font_Pak.Inc' '... For QB/PDS/VB-DOS
-
- '======================================================== PowerBasic Users
- ''$INCLUDE "Font_Pak.Inc" '... PB users, UN-REM these lines
-
- ''$Link "FontPakP.OBJ" '... SHAREWARE users
-
- ''$Link "Video.OBJ" '... REGISTERED users
- ''$Link "Fonts.OBJ" '... REGISTERED users
-
- '======================================================== PowerBasic Users
-
-
- '============================================================ Demo_Mon.Bas
- '
- ' A Font Pak Demonstration Copyright 1991-1994 Rob W. Smetana
- '
- ' Demonstrate how to determine which type of monitor is being used
- ' (changing text-mode fonts requires EGA/VGA).
- '
- ' Requires: Font_Pak.Lib (QB/PDS/VB-DOS) -or- Font_Pak.Pbl (PowerBasic)
- '
- '============================================================ Demo_Mon.Bas
-
- '***********************************************************************
- ' Determine display type from BIOS variables in segment zero.
- '***********************************************************************
- '
- ' Because GetMonitor is a function, you MUST declare it before using it.
- '
- ' Returns:
- ' 0 => None (no monitor?)
- ' 1 => Monochrome Display
- ' 3 => Color Display (CGA)
- ' 4 => Enhanced Display (EGA or Multi-scan)
- ' 7 => VGA Monochrome (VGA mono)
- ' 8 => VGA Color (or Multi-scan)
- '***********************************************************************
-
- COLOR 7, 1: CLS
-
- CALL fpInitialize: CLS '=== SHAREWARE versions ONLY
-
- WhichMonitor = GetMonitor
-
- PRINT
- PRINT "GetMonitor returned"; WhichMonitor
- PRINT
- PRINT "That indicates you're using a";
-
- SELECT CASE WhichMonitor
-
- CASE 1: PRINT " Monochrome";
- CASE 3: PRINT " CGA";
- CASE 4: PRINT "n EGA (or Multi-Scan)";
- CASE 7: PRINT " VGA Mono";
- CASE 8: PRINT " VGA (or Multi-Scan)";
- CASE ELSE: PRINT "n UNKNOWN";
- END SELECT
-
- PRINT " monitor."
-
-
-