home *** CD-ROM | disk | FTP | other *** search
- Documentation of Extgraph
- =========================
-
- Extgraph is a Turbo Pascal unit and is part of the Graphics Vision
- package. Extgraph provides some routines for graphical output.
-
- const SignX:Byte=30; SignY: Byte=20;
-
- These constants determine the size of bitmaps for TGbutton, Ticon and
- Tstaticsign objects. (see there)
-
- const ftSystem, ftSansserif, ftMonoSpace
-
- These are the constants used when calling MyFonts.SetTextParams.
-
- The following routines slightly modify routines of unit MetaGr for usage
- in GV.
-
- procedure RBar (var R: TRect);
-
- draws an filled rectangle on the coordinates given in R in actual
- fill color (please note that the coordinates in R have to be in TV
- notation).
- Always use MetaGr.Bar if possible in order to achieve a higher output
- speed.
-
- Procedure RRect (var R: TRect);
-
- draws a rectangle on the coordinates given in R in actual output color
- (please note that the coordinates in R have to be in TV notation).
- Always use MetaGr.Rectangle if possible in order to achieve a higher
- output speed.
-
- Procedure OutTextP (P: TPoint; S: String);
-
- draws the text S on point P. Do not use this routine if possible.
-
- Function GetShortCut (S: String): Char;
-
- gives back the first char of the part of S enclosed in '~' or
- #255 if no '~' is in the S.
-
- Procedure OutGVText (P: TPoint; S: String; Col1, Col2: Byte; Size: TPoint; Center: Boolenan);
-
- This routine draws the text S on point P in color Col1.
- Text enclosed in '~' is drawn in color Col2. Is the text larger than
- Size (given in pixel) it will be cut. Center determines whether the text
- is centered in horizontal direction.
-
- Procedure SetGVStyle (AFont: Integer);
-
- sets the font given in AFont as actual output font (see ftXXXXXX).
-
- PutGVImage (var R: TRect; Sign: Pointer; BkCol: Byte);
-
- puts out the bitmap referred to by Sign in R. Around the bitmap a frame in
- the color BkCol is drawn.
- PutGVImage uses the VGAMem routine PutImage. So you will have to create
- your bitmaps with VGAMem.GetImage
-
- The other routines remain undocumented.