home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 February
/
Chip_2004-02_cd1.bin
/
zkuste
/
konfig
/
download
/
msic
/
Help
/
Int
/
MSI_Printers.int
< prev
next >
Wrap
Text File
|
2003-08-26
|
1KB
|
44 lines
{*******************************************************}
{ }
{ MiTeC System Information Component }
{ Printer Detection Part }
{ version 8.3 for Delphi 5,6,7 }
{ }
{ Copyright ⌐ 1997,2003 Michal Mutl }
{ }
{*******************************************************}
{$INCLUDE MITEC_DEF.INC}
unit MSI_Printers;
interface
uses
SysUtils, Windows, Classes;
type
TPrinters = class(TPersistent)
private
FPrinter, FPort: TStringlist;
FDI: integer;
function GetPorts: TStrings;
function GetPrinters: TStrings;
{$IFNDEF D6PLUS}
procedure SetPorts(const Value: TStrings);
procedure SetPrinters(const Value: TStrings);
{$ENDIF}
public
constructor Create;
destructor Destroy; override;
procedure GetInfo;
procedure Report(var sl :TStringList; Standalone: Boolean = True); virtual;
published
property DefaultIndex: integer read FDI {$IFNDEF D6PLUS} write FDI {$ENDIF} stored False;
property Names :TStrings read GetPrinters {$IFNDEF D6PLUS} write SetPrinters {$ENDIF} stored false;
property Ports: TStrings read GetPorts {$IFNDEF D6PLUS} write SetPorts {$ENDIF} stored False;
end;
implementation