home *** CD-ROM | disk | FTP | other *** search
-
- {*******************************************************}
- { }
- { MiTeC System Information Component }
- { Display Detection Part }
- { version 7.4 for Delphi 5,6 }
- { }
- { Copyright ⌐ 1997,2002 Michal Mutl }
- { }
- {*******************************************************}
-
- {$INCLUDE MITEC_DEF.INC}
-
- unit MSI_Display;
-
- interface
-
- uses
- SysUtils, Windows, Classes;
-
- type
- TDisplayInfo = record
- DAC,
- Chipset: string;
- Memory: integer;
- end;
-
- TCurveCap = (ccCircles,ccPieWedges,ccChords,ccEllipses,ccWideBorders,ccStyledBorders,
- ccWideStyledBorders,ccInteriors,ccRoundedRects);
- TLineCap = (lcPolylines,lcMarkers,lcMultipleMarkers,lcWideLines,lcStyledLines,
- lcWideStyledLines,lcInteriors);
- TPolygonCap = (pcAltFillPolygons,pcRectangles,pcWindingFillPolygons,pcSingleScanlines,
- pcWideBorders,pcStyledBorders,pcWideStyledBorders,pcInteriors);
- TRasterCap = (rcRequiresBanding,rcTranserBitmaps,rcBitmaps64K,rcSetGetDIBits,
- rcSetDIBitsToDevice,rcFloodfills,rcWindows2xFeatures,rcPaletteBased,
- rcScaling,rcStretchBlt,rcStretchDIBits);
- TTextCap = (tcCharOutPrec,tcStrokeOutPrec,tcStrokeClipPrec,tcCharRotation90,
- tcCharRotationAny,tcScaleIndependent,tcDoubledCharScaling,tcIntMultiScaling,
- tcAnyMultiExactScaling,tcDoubleWeightChars,tcItalics,tcUnderlines,
- tcStrikeouts,tcRasterFonts,tcVectorFonts,tcNoScrollUsingBlts);
-
- TCurveCaps = set of TCurveCap;
- TLineCaps = set of TLineCap;
- TPolygonCaps = set of TPolygonCap;
- TRasterCaps = set of TRasterCap;
- TTextCaps = set of TTextCap;
-
- TDisplay = class(TPersistent)
- public
- constructor Create;
- destructor Destroy; override;
- procedure GetInfo;
- procedure Report_CurveCaps(ACaps :TStringList);
- procedure Report_LineCaps(ACaps :TStringList);
- procedure Report_PolygonCaps(ACaps :TStringList);
- procedure Report_RasterCaps(ACaps :TStringList);
- procedure Report_TextCaps(ACaps :TStringList);
- procedure Report(var sl :TStringList);
- published
- property Adapter :string read FAdapter {$IFNDEF D6PLUS} write FAdapter {$ENDIF} stored false;
- property DAC :string read FDAC {$IFNDEF D6PLUS} write FDAC {$ENDIF} stored false;
- property Chipset :string read FChipset {$IFNDEF D6PLUS} write FChipset {$ENDIF} stored false;
- property Memory :Integer read FMemory {$IFNDEF D6PLUS} write FMemory {$ENDIF} stored false;
- property HorzRes :integer read FHorzRes {$IFNDEF D6PLUS} write FHorzRes {$ENDIF} stored false;
- property VertRes :integer read FVertRes {$IFNDEF D6PLUS} write FVertRes {$ENDIF} stored false;
- property ColorDepth :integer read FColorDepth {$IFNDEF D6PLUS} write FColorDepth {$ENDIF} stored false;
- // BIOS info is available only under NT
- property BIOSVersion :string read FBIOSVersion {$IFNDEF D6PLUS} write FBIOSVersion {$ENDIF} stored false;
- property BIOSDate :string read FBIOSDate {$IFNDEF D6PLUS} write FBIOSDate {$ENDIF} stored false;
-
- property Technology :string read FTechnology {$IFNDEF D6PLUS} write FTechnology {$ENDIF} stored false;
- property PixelWidth :integer read FPixelWidth {$IFNDEF D6PLUS} write FPixelWidth {$ENDIF} stored false;
- property PixelHeight :integer read FPixelHeight {$IFNDEF D6PLUS} write FPixelHeight {$ENDIF} stored false;
- property PixelDiagonal :integer read FPixelDiagonal {$IFNDEF D6PLUS} write FPixelDiagonal {$ENDIF} stored false;
- property RasterCaps :TRasterCaps read FRasterCaps {$IFNDEF D6PLUS} write FRasterCaps {$ENDIF} stored false;
- property CurveCaps :TCurveCaps read FCurveCaps {$IFNDEF D6PLUS} write FCurveCaps {$ENDIF} stored false;
- property LineCaps :TLineCaps read FLineCaps {$IFNDEF D6PLUS} write FLineCaps {$ENDIF} stored false;
- property PolygonCaps :TPolygonCaps read FPolygonCaps {$IFNDEF D6PLUS} write FPolygonCaps {$ENDIF} stored false;
- property TextCaps :TTextCaps read FTextCaps {$IFNDEF D6PLUS} write FTextCaps {$ENDIF} stored false;
- property Modes :TStrings read FModes {$IFNDEF D6PLUS} write FModes {$ENDIF} stored False;
- property FontResolution: DWORD read FFontSize {$IFNDEF D6PLUS} write FFontSize {$ENDIF} stored False;
- end;
-
- implementation
-
-
-