home *** CD-ROM | disk | FTP | other *** search
-
- Current Version: 9.0
- Included in this AdvCRT UNIT are the following routines:
-
- Procedure FindScreenBase(var ScreenBase: Word);
- - Find the type of display adaptor installed and
- set the base address to variable ScreenBase.
-
- Function QuickScreenBase: Word;
- - Finds the base address of the display adaptor,
- can be passed into other procedure easily (parameter).
-
- Function MakeAttr(Fore, Back: Byte): Byte;
- - Produces a machine level Attribute byte from
- a give foreground and background.
-
- Procedure ExtractAttr(Attr: Byte; var Fore, Back: Byte);
- - Produces a Turbo style forground [0-15] and
- background [0-7] with a given machine level Attribute.
-
- Procedure TurnCursor(ONorOFF: Boolean);
- - Turns the Cursor ON or OFF, saving its "style" in global
- variable SaveCursor.
-
- Procedure SetCursor(StartScan, EndScan: Byte);
- - Allows the programmer to set the Cursor to the
- "style" he/she wants.
-
- Procedure Scroll(X1,Y1,X2,Y2, LinesToScroll, BlankLineAttr, UPorDOWN: Byte);
- - Scrolls a given region (window) on the screen up
- or down.
-
- Procedure TurnScreen(ONorOFF: Boolean);
- - Turns the monitor "on" or "off" software wise.
-
- Procedure DirectOut(X,Y: Byte; aStr: String; Attr: Byte);
- - Writes directly to Video Display Memory.
-
- Procedure SetBorder(BordColor: Byte);
- - Sets the outside border of the screen to
- a give color [0-15].
-
- Procedure GetCursorPos(var X,Y: Byte; Page: Byte);
- - Returns the position of the cursor on a given
- page.
-
- Procedure GetCRTMode(var Mode, Columns, ActivePage: Byte);
- - Returns the Mode, # of Columns, and Active Display
- Page of the display adaptor.
-
- Function ActiveDisplayPage: Byte;
- - Returns Active Display Page for quick use--can
- be used as a parameter.
-
- Procedure SetPage(Page: Byte);
- - Sets the active display page.
-
- Procedure SetCurPosPage(X,Y, Page: Byte);
- - Sets the cursor to a given position (X,Y) on
- a give Display Page.
-
- Procedure GetCharXY(X,Y, Page: Byte; var Ch: Char; var Attr: Byte);
- - Returns the character and it's attribute on the screen at
- a given location on a given Display Page.
-
- Procedure WriteChPage(X,Y, Page: Byte; Ch: Char; NumReps: Integer;
- Attr: Byte);
- - Writes a character to a given Display Page at given
- coordinates with a given Attribute. Can be used to create
- INSTANT pages of text.
-
- Procedure WriteStrPage(X,Y, Page: Byte; aStr: String; Attr: Byte);
- - Writes a string to a given Display Page at given
- coordinates with a given Attribute. Can be used to create
- INSTANT pages of text.
-
- Procedure ClrPage(Page: Byte);
- - Clears a given Display Page (like ClrScr). Note you may
- be on one page and clear another page at any time.
-
- Procedure GetKey(var Code: Byte; var Extkey: Boolean);
- - Reads a key from the keyboard and returns it's scan code
- along with whether or not that key is "EXTENDED".
-
- Function CapsLockON: Boolean;
- - Returns TRUE if Caps Lock key is active.
-
- Function NumLockON: Boolean;
- - Returns TRUE if Num Lock key is active.
-
- Function ScrollLockON: Boolean;
- - Returns TRUE if Scroll Lock key is active.
-
- Function RightShift: Boolean;
- - Returns TRUE if the Right Shift key is active at the
- time of the call to the function.
-
- Function LeftShift: Boolean;
- - Returns TRUE if the Left Shift key is active at the
- time of the call to the function.
-
- Function AltPressed: Boolean;
- - Returns TRUE if the Alt key is active at the time of the
- call to the function.
-
- Function CtrlPressed: Boolean;
- - Returns TRUE if the Ctrl key is active at the time of the
- call to the function.
-
- Function InsertModeON: Boolean;
- - Returns TRUE if the INSert key is active.
-
- Procedure CapsLockKey(ONorOFF: Boolean);
- - Sets the keyboard CAPS LOCK state to Upper Case or Lower Case.
-
- Procedure NumLockKey(ONorOFF: Boolean);
- - Sets the keypad to its Cursor Control or Numeric state.
-
- Procedure SaveScreen(var aScreen: ScreenType; Height: Byte;
- var Status: Byte);
- - Save a text screen to memory (to variable aScreen). Can later
- be restored INSTANTLY to the screen with the RestoreScreen
- procedure.
-
- Procedure RestoreScreen(aScreen: ScreenType);
- - Restores a text screen stored in variable aScreen to Video
- Display Memory for an INSTANTANEOUS screen update.
-
- Function NumSecsMidNight: Real;
- - Returns the number of seconds elapsed on the system clock since
- midnight of the current day.
-
- Procedure CheckTime(Action: Byte);
- - Evaluates the SPEED of ANY routine inside and outside of Turbo.
- Can be used to check the speed of your procedures, the procedures
- in AdvCRT, DOS functions, etc.
-
- Procedure PrintScreen(var Status: Byte);
- - Causes the current text or graphics screen to be printed to the
- default printer. Identical to "Shift-PrtSc" key.
-
- Procedure DelaySeconds(NumSecs: Real; KeyIntr: Boolean);
- - Delays NumSecs number of seconds (instead of a boring millisecond
- delay with the standard DELAY command), with an option to allow
- the user to abort the wait with a keystroke.
-
- AdvCRT is Copyright (C) 1990 Gary A. Kohan, Jr. All rights reserved worldwide.
- Turbo Pascal is a registered trademark of Borland, International.