Changeset 8 for trunk/UFormAcronym.pas
- Timestamp:
- Apr 21, 2016, 1:12:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UFormAcronym.pas
r5 r8 20 20 Label1: TLabel; 21 21 Label2: TLabel; 22 Label3: TLabel; 23 MemoDescription: TMemo; 24 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 22 25 procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); 26 procedure FormShow(Sender: TObject); 23 27 private 24 28 { private declarations } … … 35 39 {$R *.lfm} 36 40 41 uses 42 UFormMain; 43 37 44 { TFormAcronym } 38 45 … … 44 51 end; 45 52 53 procedure TFormAcronym.FormClose(Sender: TObject; var CloseAction: TCloseAction 54 ); 55 begin 56 FormMain.PersistentForm1.Save(Self); 57 end; 58 59 procedure TFormAcronym.FormShow(Sender: TObject); 60 begin 61 FormMain.PersistentForm1.Load(Self); 62 end; 63 46 64 procedure TFormAcronym.Load(Entry: TAcronymEntry); 47 65 begin 48 66 EditAcronym.Text := Entry.Name; 49 67 EditMeaning.Text := Entry.Meaning; 68 MemoDescription.Text := Entry.Description; 50 69 end; 51 70 … … 54 73 Entry.Name := EditAcronym.Text; 55 74 Entry.Meaning := EditMeaning.Text; 75 Entry.Description := MemoDescription.Text; 56 76 end; 57 77
Note:
See TracChangeset
for help on using the changeset viewer.