Changeset 8 for trunk/UFormAcronym.pas


Ignore:
Timestamp:
Apr 21, 2016, 1:12:45 PM (8 years ago)
Author:
chronos
Message:
  • Added: Also allow to edit acronym detailed description.
  • Added: Import from CSV file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UFormAcronym.pas

    r5 r8  
    2020    Label1: TLabel;
    2121    Label2: TLabel;
     22    Label3: TLabel;
     23    MemoDescription: TMemo;
     24    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    2225    procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
     26    procedure FormShow(Sender: TObject);
    2327  private
    2428    { private declarations }
     
    3539{$R *.lfm}
    3640
     41uses
     42  UFormMain;
     43
    3744{ TFormAcronym }
    3845
     
    4451end;
    4552
     53procedure TFormAcronym.FormClose(Sender: TObject; var CloseAction: TCloseAction
     54  );
     55begin
     56  FormMain.PersistentForm1.Save(Self);
     57end;
     58
     59procedure TFormAcronym.FormShow(Sender: TObject);
     60begin
     61  FormMain.PersistentForm1.Load(Self);
     62end;
     63
    4664procedure TFormAcronym.Load(Entry: TAcronymEntry);
    4765begin
    4866  EditAcronym.Text := Entry.Name;
    4967  EditMeaning.Text := Entry.Meaning;
     68  MemoDescription.Text := Entry.Description;
    5069end;
    5170
     
    5473  Entry.Name := EditAcronym.Text;
    5574  Entry.Meaning := EditMeaning.Text;
     75  Entry.Description := MemoDescription.Text;
    5676end;
    5777
Note: See TracChangeset for help on using the changeset viewer.