Changeset 5 for trunk/FormMain.pas
- Timestamp:
- Jul 8, 2024, 11:31:59 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FormMain.pas
r3 r5 17 17 MemoSummary: TMemo; 18 18 MemoLog: TMemo; 19 MemoSource: TMemo; 19 20 PageControlSummary: TPageControl; 20 TabSheet1: TTabSheet; 21 TabSheetSummary: TTabSheet; 22 TabSheetSource: TTabSheet; 21 23 TabSheetLog: TTabSheet; 24 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 22 25 procedure FormCreate(Sender: TObject); 23 26 procedure FormDestroy(Sender: TObject); … … 40 43 procedure TFormMain.FormShow(Sender: TObject); 41 44 begin 45 if FileExists(EditSource.Text) then 46 MemoSource.Lines.LoadFromFile(EditSource.Text); 42 47 Summary.OnLog := Log; 43 Summary.LoadFrom File(EditSource.Text);48 Summary.LoadFromStrings(MemoSource.Lines); 44 49 MemoSummary.Text := Summary.Print; 50 //PageControlSummary.TabIndex := 1; 45 51 end; 46 52 … … 55 61 end; 56 62 63 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 64 begin 65 MemoSource.Lines.SaveToFile(EditSource.Text); 66 end; 67 57 68 procedure TFormMain.FormDestroy(Sender: TObject); 58 69 begin
Note:
See TracChangeset
for help on using the changeset viewer.