home *** CD-ROM | disk | FTP | other *** search
- Documentation of GVDriver
- =========================
-
- GVDriver is a Turbo Pascal unit and is a part of the Graphics Vision
- package.
- GVDriver provides routines for mouse, screen and error management for GV.
-
- Routines that have similar names and functions as in the TV unit Drivers
- are not mentioned here.
-
- StdGrMode: This variable stores the graphic mode which is to be set by
- InitVideo. If you want to use another graphic mode just set
- the variable to one of the grXXXXXX constants (see unit Gr)
- before calling Tapplication.Init.
- Alternatively you can override the method Tapplication.InitScreen
- which then has to call SetScreenMode with one of the constants
- mentioned above as parameter (also see Tapplication.InitScreen).
-
- MCurStandard: This variable stores the current standard mouse pointer.
- If the mouse pointer is adjusted to certain actions
- (e.g. by Tinputline objects) this mouse pointer will be
- restored afterwards. You can set this variable directly on
- one of the mcXXXXXX constants. (see GVViews.INT)
-
- Procedure SetCriticalArea (var R: TRect);
-
- sets the area you wish to draw in. If HideMouse is called the mouse pointer
- will only be hidden if the mouse is inside the area you set with
- SetCriticalArea. Normally you will not have to call this routine yourself.
- This is done by TGview.SetViewPort (see there).
-
- Procedure SetCurrentCursor (n: Integer);
-
- sets the mouse pointer with the number given as the only mouse pointer.
- Mouse pointers that are chosen this way cannot be adjusted by unit
- MyMouse (or GV) automatically. This pointer remains actual mouse pointer
- until you choose another pointer with SetCurrentCursor or use the routine
- with mcNocursor which means that automatic adjustment will be allowed
- again. (also see MCurStandard)
-
- procedure InitFonts;
-
- initializes the font management of GV. If Windows 3.x is installed on the
- system a GV program is running on Windows bitmap fonts will be used.
- If not GV automatically uses BIOS fonts. (see MyFonts)
- Before calling InitFonts you must initialize the TV memory management via
- InitMemory. You will have to call InitFonts when creating resources.
- (see DemoRez.PAS)
-
- procedure DoneFonts;
-
- ends the font management of GV by calling MyFonts.DoneMyFonts.
-
- Procedure InitVideo;
-
- initializes the graphic mode (grVGAHiStd).
-
- Procedure SetScreenMode (Mode: Integer);
-
- sets the graphic mode given in mode. Valid value for mode are the
- grXXXXXXX constants (see unit Gr).
-
- The other routines will remain undocumented.