home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / turbocad / v8trial / TurboCADv8ProfessionalNoReg.exe / Data.Cab / F37643_PopUp.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-10-16  |  901 b   |  49 lines

  1. unit PopUp;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls, ComCtrls, ExtCtrls;
  8.  
  9. type
  10.   TFormPopUp = class(TForm)
  11.     RichEditHelp: TRichEdit;
  12.     ButtonExit: TButton;
  13.     procedure ButtonExitClick(Sender: TObject);
  14.     procedure FormActivate(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     PopupRTFFileName: String;
  19.     procedure SetFileName (FileName: String);
  20.     { Public declarations }
  21.  
  22.   end;
  23.  
  24. var
  25.   FormPopUp: TFormPopUp;
  26.  
  27. implementation
  28.  
  29. uses Preview;
  30.  
  31. {$R *.DFM}
  32.  
  33. procedure TFormPopUp.ButtonExitClick(Sender: TObject);
  34. begin
  35.    close;
  36. end;
  37.  
  38. procedure TFormPopUp.SetFileName (FileName: String);
  39. begin 
  40.     PopupRTFFileName := FileName;
  41. end;
  42.  
  43. procedure TFormPopUp.FormActivate(Sender: TObject);
  44. begin
  45.     RichEditHelp.Lines.LoadFromFile(PopupRTFFileName);
  46. end;
  47.  
  48. end.
  49.