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

  1. Documentation of Extgraph
  2. =========================
  3.  
  4. Extgraph is a Turbo Pascal unit and is part of the Graphics Vision
  5. package. Extgraph provides some routines for graphical output.
  6.  
  7. const SignX:Byte=30; SignY: Byte=20;
  8.  
  9.   These constants determine the size of bitmaps for TGbutton, Ticon and
  10.   Tstaticsign objects. (see there)
  11.  
  12. const ftSystem, ftSansserif, ftMonoSpace
  13.  
  14.   These are the constants used when calling MyFonts.SetTextParams.
  15.  
  16. The following routines slightly modify routines of unit MetaGr for usage
  17. in GV.
  18.  
  19. procedure RBar (var R: TRect);
  20.  
  21.   draws an filled rectangle on the coordinates given in R in actual
  22.   fill color (please note that the coordinates in R have to be in TV
  23.   notation).
  24.   Always use MetaGr.Bar if possible in order to achieve a higher output
  25.   speed.
  26.  
  27. Procedure RRect (var R: TRect);
  28.  
  29.   draws a rectangle on the coordinates given in R in actual output color
  30.   (please note that the coordinates in R have to be in TV notation).
  31.   Always use MetaGr.Rectangle if possible in order to achieve a higher
  32.   output speed.
  33.  
  34. Procedure OutTextP (P: TPoint; S: String);
  35.  
  36.   draws the text S on point P. Do not use this routine if possible.
  37.  
  38. Function GetShortCut (S: String): Char;
  39.  
  40.   gives back the first char of the part of S enclosed in '~' or
  41.   #255 if no '~' is in the S.
  42.  
  43. Procedure OutGVText (P: TPoint; S: String; Col1, Col2: Byte; Size: TPoint; Center: Boolenan);
  44.  
  45.   This routine draws the text S on point P in color Col1.
  46.   Text enclosed in '~' is drawn in color Col2. Is the text larger than
  47.   Size (given in pixel) it will be cut. Center determines whether the text
  48.   is centered in horizontal direction.
  49.  
  50. Procedure SetGVStyle (AFont: Integer);
  51.  
  52.   sets the font given in AFont as actual output font (see ftXXXXXX).
  53.  
  54. PutGVImage (var R: TRect; Sign: Pointer; BkCol: Byte);
  55.  
  56.   puts out the bitmap referred to by Sign in R. Around the bitmap a frame in
  57.   the color BkCol is drawn.
  58.   PutGVImage uses the VGAMem routine PutImage. So you will have to create
  59.   your bitmaps with VGAMem.GetImage
  60.  
  61. The other routines remain undocumented.