home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Taifun Collection
/
Taifun_Collection_Vol_1.iso
/
richter
/
8530
/
8530.mhs
/
RICHTER.DTP
/
ETIKETT
/
INSTALL.DAT
/
ETIKETT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-12-05
|
5KB
|
187 lines
{$I SHARE.INC}
uses crt,Dos,dbf4,extend,vidpop,SayGet4,SysInfo,Pick,
UHilfe,UAdress,UEtikett,Edit,Dialog,
TimeDate,Sounder,UCalc
{$IFDEF SWARE} ,Share {$ENDIF};
{$M 64000,0,650000}
{$F+}
Var Ende : Boolean;
Farbe: Boolean;
PROCEDURE Reset_Printer;
var address: integer absolute $0040:$0008;
portno,delay : integer;
begin
portno := address + 2;
port[portno] := 232;
for delay := 1 to 2000 do {nothing};
port[portno] := 236;
end;
Procedure Notiz;
begin
PushWindow(1,1,80,25);
PopLib(1,'Notiz');
Set_EditorWindow_to(39,7,74,21,0,'');
EditText('NOTIZ.TXT NOSTATUS');
PopWindow;
end;
Procedure Zeige_Info;
Var InfoDat : Text;
Z : String[36];
I : Byte;
begin
Assign(InfoDat,'Info.dat');
{$I-} Reset(InfoDat); {$I+}
If IOResult = 0 then
begin
PushColors;
If IsColor then Set_Color_to(white,red,red,lightgray)
else Set_Color_to(black,lightgray,lightgray,black);
PopLib(1,'Info');
For I := 1 to 10 do
begin
ReadLn(InfoDat,Z);
AT(22, 6+I,Z);
If Eof(InfoDat) then I := 10;
end;
Close(InfoDat);
GetIntVec($1C,Int1CSave);
SetIntVec($1C,New1CInt);
StartSound(@Canon,99,1);
repeat
until KeyPressed;
SetIntVec($1C,Int1CSave);
NoSound;
Wait('');
PopColors;
end;
end;
Procedure FKeys;
Var Name : String;
begin
PushWindow(1,1,80,25);
PushMenu;
PushColors;
case MenuKey of
F1 : Zeige_Hilfe(10,4,70,18,'HMENU');
F2 : begin
Set_EditorWindow_to(1,1,80,24,1+64,'FM-Software Texteditor');
EditText('*,*');
end;
F3 : begin
SelectAlias('Adress');
Adress_menu;
SelectAlias('Etikett');
end;
F4 : Adress_Etikett;
F5 : begin
Set_PickWindow_To(48,4,73,20,2+128,' INHALTSVERZEICHNIS ');
Name := PickFile('*.*');
end;
F6 : Zeige_Info;
F7 : begin
Set_Color_to(black,cyan,cyan,black);
Calculator(54,4);
end;
F8 : EtikettenListe;
F9 : begin
Set_Color_to(Black,cyan,cyan,black);
Name := SelectDate(SystemDate);
end;
F10 : Notiz;
end;
PopColors;
PopMenu;
PopWindow;
Set_Cursor_off;
MenuKey := ' ';
end;
begin
{$IFDEF SWARE}
Shareware(2,10,1);
{$ENDIF}
Read_Drucker;
Set_Cursor_off;;
Set_Country_to(Germany);
Set_Escape_on;
Set_Status_Bottom;
Set_ScoreBoard_to(25);
Set_AutoHalt_off;
Set_Deleted_ON;
FARBE := IsColor;
if FARBE then
begin
Set_Calendar_to(45,4,black,lightgray,1,'KALENDER');
OpenLibrary(1,'Color.Lib',true);
Set_Pick_Color_to(black,cyan,black,lightgray);
Set_Editor_Color_to(Frame, black,cyan);
Set_Editor_Color_to(Status, black,lightgray);
Set_Editor_Color_to(HelpFrame, black,lightgray);
Set_Editor_Color_to(HelpText, black,lightgray);
Set_Editor_Color_to(NormalText,black,cyan);
Set_Menu_Color_to(lightgray,black,black,lightgray);
Set_Tag_Color_to(black,cyan,black,lightgray);
Set_Color_to(black,lightgray,lightgray,black);
Set_Dialog_Color_to(black,lightgray,black,lightgray);
end else
begin
Set_BW_on;
Set_Menu_Color_to(lightgray,black,black,lightgray);
Set_Dialog_Color_to(black,lightgray,black,lightgray);
Set_Color_to(black,lightgray,lightgray,black);
OpenLibrary(1,'Mono.Lib',true);
end;
Ende := false;
Open_Etikett;
PopLib(1,'HMenu');
repeat
popLib(1,'HMENU');
clearEOL(1,25);
AT(1,25,' FM-ETIKETT 1.0 '+#179+' Copyright 1991 bei FM-Software, Mönchengladbach ');
Set_MenuFKeys_to(F1+F2+F3+F4+F5+F6+F7+F8+F9+F10,@FKeys);
popLib(1,'menu1');
Case MenuChoice of
1 : begin
ETIKETT_DRUCKEN;
MenuKey := ' ';
end;
2 : Etikett_Neu;
3 : begin
SInfo;
end;
4 : begin
PushWindow(1,1,80,25);
PopLib(1,'HandB');
Set_EditorWindow_to(5,4,75,20,0+64,'');
EditText('HANDBUCH.TXT NOSTATUS');
PopWindow;
end;
5 : begin
Get_Drucker;
end;
end;
Set_Cursor_off;
If (MenuChoice = 6) OR (MenuKey = #27) then
Ende := DialogBox('Programm beenden (J/N) ? ','JN'#13#27) = 'J';
until Ende;
Set_Cursor_on;
Set_Color_to(lightgray,black,black,lightgray);
clrscr;
{$IFDEF SWARE}
Shareware(0,0,0);
{$ENDIF}
gotoxy(3,1); Writeln(' Bis bald ... ');
writeln;
end.