home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 25 Years Anniversary
/
CHIP_25Jahre_Jubilaeum.iso
/
downloads
/
400616
/
data1.cab
/
Common-Lexware-Sysinfo-Formular-Standard
/
sysinfo.lsf
< prev
next >
Wrap
Text File
|
2003-04-01
|
13KB
|
497 lines
'------------------------'------------------------'------------------------
' Test Formular
Include "DruckNT.int"
'------------------------'------------------------'------------------------
declare external Get(s as String, n as Numeric) as String
declare external Is(s as String, n as Numeric) as Bool
declare external GetNumeric(s as String, n as Numeric) as Numeric
declare external GetInt(s as String, n as Numeric) as Numeric
declare external GetDate(s as String, n as Numeric) as Numeric
declare external GetTime(s as String, n as Numeric) as Numeric
declare external FirstRecord(s as String) as Bool
declare external NextRecord(s as String) as Bool
'GetCheckStatus frΣgt den Status der Checkboxen aus dem Baum ab!
declare external GetCheckStatus() as Bool
'-------------------'-------------------DESCRIPTION'-------------------'-------------------
description form_description as "Lexware Systeminformation"
description form_code as "Systeminformation"
description form_version as "2.30.17.1219"
description form_target as "Printer"
description page_orientation as PAGE_PORTRAIT
'-------------------'-------------------MARGINS'-------------------'-------------------
SetBodyMargin ( 110, 200, 140, 200 ) ' left top right bottom
SetFooterMargin ( 110, 200, 150, 200 ) ' left top right height
SetHeaderMargin ( 110, 90, 140, 150 ) ' left top right height
'-------------------'-------------------KONSTANTEN'-------------------'-------------------
'-------------------'-------------------VARIABLEN'-------------------'-------------------
Dim font as FontType
font = CreateFont("Arial",12,FONT_NORMAL,COLOR_BLACK)
Dim fon as FontType
fon = CreateFont("Arial",10,FONT_NORMAL,COLOR_BLACK)
'-------------------'-------------------FUNCTIONS'-------------------'-------------------
'Footer Bereich
function OnPrintFooter()
RemoveAllTabs()
SetTabs("L C R")
SetFont("Arial", 8, FONT_NORMAL, COLOR_BLACK)
DrawHorzLine(LINE_TOP)
LF
TL( "⌐ Lexware GmbH & Co. KG 2000\t" + FormatDate("%d.%m.%Y", Now()) + "\tSeite " + PAGENUMBER + " " +GetFormFileName())
RemoveAllTabs()
end function
'Header Bereich
function OnPrintHeader()
RemoveAllTabs()
SetTabs("L C R")
SetFont("Arial", 14, FONT_BOLD, COLOR_BLACK)
TL( "Lexware Systeminformation " + Get("S",41))
DrawHorzLine(LINE_TOP)
RemoveAllTabs()
end function
'------------------------------EVENT HANDLER------------------------------
SetEventHandler(EVENT_PRINT_FOOTER, OnPrintFooter)
SetEventHandler(EVENT_PRINT_HEADER, OnPrintHeader)
'-----------------------------MAIN------------------------------
dim bG as Bool
dim bG1 as Bool
dim bGC as Bool
dim inhalt as String
dim drucken as Bool
dim drucken_BDll as Bool
dim drucken_SDll as Bool
'dieser Schalter dient lediglich zum aufgerΣumteren drucken. Wenn schon Dinge gedruckt, dann fⁿr die Progs ne neue Seite!
dim bPageBreak as Numeric
bPageBreak = 0
''
if (GetCheckStatus()) then
LF
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Betriebssystem")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
SetTabs(" L L200") '@TABS L L20
TL("Produkt\t"+ Get("S",1))
TL("Version\t"+ Get("S",2))
TL("Sprache\t"+ Get("S",3))
LF
bPageBreak = 1
end if
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
SetTabs(" L L380")
TL("Verzeichnisse\tPfad")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
TL("Windows-Verzeichnis\t"+ Get("S",4))
TL("System-Verzeichnis\t"+ Get("S",5))
TL("Temp-Verzeichnis\t"+ Get("S",6))
LF
bPageBreak = 1
end if
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L R800 R1400")
TL("Browser\tVersion\tStandard")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("T")
while bG do
TL(Get("T",1)+"\t"+Get("T",2) +"\t"+Get("T",3))
bG = NextRecord("T")
end while
LF
bPageBreak = 1
end if
'einmal so abfragen um den Systemresourcen-Knoten zu ⁿberspringen
drucken = GetCheckStatus()
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L R800 R1400")
TL("Speicher\tTotal\tFrei")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
TL("Speicherlast\t"+ Get("S",11))
TL("physikalisch\t" + Get("S",12)+"\t" + Get("S",13))
TL("virtuell\t" + Get("S",14)+"\t"+ Get("S",15))
TL("Auslagerungsdatei\t" + Get("S",16)+"\t"+ Get("S",17))
LF
bPageBreak = 1
end if
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L200 R800 L900")
TL("Laufwerk\tTyp\tFrei\tPfad")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("A")
while bG do
TL(""+Get("A",1)+"\t"+Get("A",2)+"\t"+Get("A",3)+"\t"+Get("A",4) )
bG = NextRecord("A")
end while
LF
bPageBreak = 1
end if
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L500")
TL("LΣndereinstellungen")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("B")
while bG do
TL(Get("B",1)+"\t"+Get("B",2) )
bG = NextRecord("B")
end while
LF
bPageBreak = 1
end if
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L900")
TL("Soundkarten\tVersion")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("D")
while bG do
TL(Get("D",1)+"\t"+Get("D",2) )
bG = NextRecord("D")
end while
LF
bPageBreak = 1
end if
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L900 L1100")
TL("Drucker\tTreiber\tPfad")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("E")
while bG do
TL(Get("E",1)+"\t"+Get("E",2)+"\t"+Get("E",3) )
bG = NextRecord("E")
end while
LF
bPageBreak = 1
end if
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L200")
TL("Anzeige")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
TL("\tTreiber\t"+ Get("S",31) )
TL("\tAufl÷sung\t"+ Get("S",32) )
TL("\tFarbtiefe\t"+ Get("S",33) )
LF
bPageBreak = 1
end if
if (GetCheckStatus()) then
'ODBC Treiber Name
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
RemoveAllTabs()
TL("ODBC Treiber")
bPageBreak = 1
end if
'ODBC EintΣge
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
RemoveAllTabs()
SetTabs("L L900")
bGC = FirstRecord("C")
while bGC do
if (GetCheckStatus())then
SetFont("Arial", 8, FONT_BOLD, COLOR_BLACK)
TL(Get("C",1))
TL("Wert\tStatus")
SetFont("Arial", 8, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("F")
while bG do
inhalt = Get("F",1)
TL(inhalt +"\t\t"+Get("F",2) )
bG = NextRecord("F")
if (inhalt = "")then
bG = FALSE
end if
end while
end if
bGC = NextRecord("C")
end while
'hier geht es los mit den Programmspezifischen ausgaben
''''''''''''''''''''''''''''''''''''''''''''''''''''''
bG1 = FirstRecord("G")
while bG1 do
' TL("prog")
if (GetCheckStatus()) then
if (bPageBreak <> 0) then
PageBreak()
end if
bPageBreak = 1
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L200")
TL( Get("G",1) )
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
TL("Version\t" + Get("G",2) )
inhalt = Get("G",3)
if (inhalt <> "")then
TL("Serien-Nr\t"+ inhalt)
end if
end if
LF
bG = FirstRecord("J")
if (bG) then
' TL("int")
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Intern")
SetFont("Arial", 10, FONT_ITALIC, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L600")
TL("Element\tVersion")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
while bG do
TL("\t"+Get("J",1)+"\t"+Get("J",2) )
bG = NextRecord("J")
end while
LF
end if
end if
bG = FirstRecord("I")
if (bG) then
' TL("Dll")
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Dll┤s")
RemoveAllTabs()
SetFont("Arial", 10, FONT_ITALIC, COLOR_BLACK)
SetTabs("L L30 L200 L450 LR950 L1050 L1250")
TL("Name\tmin.Version\tinst.Version\tGr÷▀e in Bytes \tgeladen\tPfad")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
while bG do
TL(Get("I",7)+"\t"+Get("I",1)+"\t"+Get("I",6)+"\t"+Get("I",4)+"\t"+Get("I",3)+"\t"+Get("I",5)+"\t"+Get("I",2) )
bG = NextRecord("I")
end while
LF
end if
end if
bG = FirstRecord("H")
if (bG) then
' TL("Verz")
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Verzeichnisse")
SetFont("Arial", 10, FONT_ITALIC, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L400")
TL("Verzeichnis\tPfad")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
while bG do
TL(Get("H",1)+"\t"+Get("H",2) )
bG = NextRecord("H")
end while
LF
end if
end if
bG = FirstRecord("M")
if (bG) then
' TL("DP")
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Druckparameter")
SetFont("Arial", 10, FONT_ITALIC, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L900")
TL("Element\tWert")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("M")
while bG do
TL(Get("M",1)+"\t"+Get("M",2) )
bG = NextRecord("M")
end while
LF
end if
end if
'bei der Druckauswahl wird nicht zwischen BTrieve und Btrieve-Dll unterschieden, deshalb gilt es fⁿr beide
drucken_BDll = FALSE
bG = FirstRecord("K")
if (bG)then
drucken = GetCheckStatus()
drucken_BDll = TRUE
' TL("BT")
if (drucken) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Btrieve")
SetFont("Arial", 10, FONT_ITALIC, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L900")
TL("Element\tWert")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("K")
while bG do
TL(Get("K",1)+"\t"+Get("K",2) )
bG = NextRecord("K")
end while
LF
end if
end if
bG = FirstRecord("L")
if (bG) then
' TL("BTDll")
if (drucken_BDll = FALSE) then
drucken_BDll = GetCheckStatus()
end if
if (drucken_BDll) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Btrieve-DLL's")
SetFont("Arial", 10, FONT_ITALIC, COLOR_BLACK)
RemoveAllTabs()
SetTabs("L L30 L200 L450 R950 L1050 L1250")
TL("Name\tmin.Version\tinst.Version\tGr÷▀e in Bytes\tgeladen\tPfad")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("L")
while bG do
if (Get("L",1) <> "anzeige") then
TL(Get("L",7)+"\t"+Get("L",1)+"\t"+Get("L",6)+"\t"+Get("L",4)+"\t"+Get("L",3)+"\t"+Get("L",5)+"\t"+Get("L",2) )
end if
bG = NextRecord("L")
end while
LF
end if
end if
'bei der Druckauswahl wird nicht zwischen Sybase-Dll unterschieden, deshalb gilt es fⁿr beide
drucken_SDll = FALSE
bG = FirstRecord("P")
if (bG)then
drucken = GetCheckStatus()
drucken_SDll = TRUE
if (drucken) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Sybase")
SetFont("Arial", 10, FONT_ITALIC, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L900")
TL("Element\tWert")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("P")
while bG do
TL(Get("P",1)+"\t"+Get("P",2) )
bG = NextRecord("P")
end while
LF
end if
end if
bG = FirstRecord("R")
if (bG) then
if (drucken_SDll = FALSE) then
drucken_SDll = GetCheckStatus()
end if
if (drucken_SDll) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Sybase-DLL's")
SetFont("Arial", 10, FONT_ITALIC, COLOR_BLACK)
RemoveAllTabs()
SetTabs("L L30 L200 L450 R950 L1050 L1250")
TL("Name\tmin.Version\tinst.Version\tGr÷▀e in Bytes\tgeladen\tPfad")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("R")
while bG do
if (Get("R",1) <> "anzeige") then
TL(Get("R",7)+"\t"+Get("R",1)+"\t"+Get("R",6)+"\t"+Get("R",4)+"\t"+Get("R",3)+"\t"+Get("R",5)+"\t"+Get("R",2) )
end if
bG = NextRecord("R")
end while
LF
end if
end if
bG = FirstRecord("N")
if (bG) then
' TL("Fonts")
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Schriftarten")
SetFont("Arial", 10, FONT_ITALIC, COLOR_BLACK)
RemoveAllTabs()
SetTabs(" L L300 L500 L700")
TL("Schriftart\tRaster\tTrueType\tVektor")
SetFont("Arial", 10, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("N")
while bG do
TL(Get("N",1)+"\t"+Get("N",2)+"\t"+Get("N",3)+"\t"+Get("N",4) )
bG = NextRecord("N")
end while
LF
end if
end if
bG = FirstRecord("O")
if (bG)then
' TL("Form")
if (GetCheckStatus()) then
SetFont("Arial", 10, FONT_BOLD, COLOR_BLACK)
TL("Formulare")
RemoveAllTabs()
SetFont("Arial", 10, FONT_ITALIC, COLOR_BLACK)
SetTabs("L L30 L200 L1050 L1250 L1470 R1850")
TL("Name\tBeschreibung\tVersion\tAusgabe\tDatum\tBytes")
SetFont("Arial", 8, FONT_NORMAL, COLOR_BLACK)
bG = FirstRecord("O")
while bG do
TL(Get("O",1)+"\t"+Get("O",2)+"\t"+Get("O",3)+"\t"+Get("O",4)+"\t"+Get("O",5)+"\t"+Get("O",6))
bG = NextRecord("O")
end while
LF
end if
end if
bG1 = NextRecord("G")
end while 'bG1