home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / dos / tvision / gravis / gv / gvdriver.doc < prev    next >
Encoding:
Text File  |  1994-05-23  |  2.6 KB  |  63 lines

  1. Documentation of GVDriver
  2. =========================
  3.  
  4. GVDriver is a Turbo Pascal unit and is a part of the Graphics Vision
  5. package.
  6. GVDriver provides routines for mouse, screen and error management for GV.
  7.  
  8. Routines that have similar names and functions as in the TV unit Drivers
  9. are not mentioned here.
  10.  
  11. StdGrMode: This variable stores the graphic mode which is to be set by
  12.            InitVideo. If you want to use another graphic mode just set
  13.        the variable to one of the grXXXXXX constants (see unit Gr)
  14.        before calling Tapplication.Init.
  15.        Alternatively you can override the method Tapplication.InitScreen
  16.        which then has to call SetScreenMode with one of the constants
  17.        mentioned above as parameter (also see Tapplication.InitScreen).
  18.  
  19. MCurStandard: This variable stores the current standard mouse pointer.
  20.           If the mouse pointer is adjusted to certain actions
  21.           (e.g. by Tinputline objects) this mouse pointer will be
  22.           restored afterwards. You can set this variable directly on
  23.           one of the mcXXXXXX constants. (see GVViews.INT)
  24.  
  25. Procedure SetCriticalArea (var R: TRect);
  26.  
  27.   sets the area you wish to draw in. If HideMouse is called the mouse pointer
  28.   will only be hidden if the mouse is inside the area you set with
  29.   SetCriticalArea. Normally you will not have to call this routine yourself.
  30.   This is done by TGview.SetViewPort (see there).
  31.  
  32. Procedure SetCurrentCursor (n: Integer);
  33.  
  34.   sets the mouse pointer with the number given as the only mouse pointer.
  35.   Mouse pointers that are chosen this way cannot be adjusted by unit
  36.   MyMouse (or GV)  automatically. This pointer remains actual mouse pointer
  37.   until you choose another pointer with SetCurrentCursor or use the routine
  38.   with mcNocursor which means that automatic adjustment will be allowed
  39.   again. (also see MCurStandard)
  40.  
  41. procedure InitFonts;
  42.  
  43.   initializes the font management of GV. If Windows 3.x is installed on the
  44.   system a GV program is running on Windows bitmap fonts will be used.
  45.   If not GV automatically uses BIOS fonts. (see MyFonts)
  46.   Before calling InitFonts you must initialize the TV memory management via
  47.   InitMemory. You will have to call InitFonts when creating resources.
  48.   (see DemoRez.PAS)
  49.  
  50. procedure DoneFonts;
  51.  
  52.   ends the font management of GV by calling MyFonts.DoneMyFonts.
  53.  
  54. Procedure InitVideo;
  55.  
  56.   initializes the graphic mode (grVGAHiStd).
  57.  
  58. Procedure SetScreenMode (Mode: Integer);
  59.  
  60.   sets the graphic mode given in mode. Valid value for mode are the
  61.   grXXXXXXX constants (see unit Gr).
  62.  
  63. The other routines will remain undocumented.