home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sw602 / wintext / disk1 / data.1 / AUTOCLOS.TXT < prev    next >
Text File  |  1994-11-02  |  638b  |  24 lines

  1. Program AutoClose;
  2. // P°φklad mo₧nΘho makra AutoClose, kterΘ takto nahradφ
  3. // standardnφ hlßÜku o neulo₧enΘm dokumentu.
  4.  
  5. var
  6.   S : string[300];
  7. begin
  8.   if not IsModified then Halt;
  9.   S:="Dokument ";
  10.   if IsDocDefault 
  11.     then begin
  12.            S:= S + GetDocWndTittle + " nebyl nikdy ulo₧en !"
  13.          end 
  14.     else begin
  15.            S:= S + #13#10 + GetDocFileName;
  16.            S:= S + #13#10"nebyl od poslednφ zm∞ny ulo₧en !"
  17.          end;
  18.  
  19.   S:= S + #13#10#13#10"AvÜak jedno °eÜenφ by bylo.";
  20.   S:= S + #13#10" Ulo₧it ?!";
  21.   if YesNo_Box("D∙le₧itΘ upozorn∞nφ !", S)
  22.     then SaveFile
  23.     else MarkUnmodified;
  24. end.