Ignore:
Timestamp:
Mar 30, 2018, 12:13:24 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: FormContacts was not translated if created in runtime.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r17 r19  
    4949    procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
    5050    procedure FormCreate(Sender: TObject);
     51    procedure FormDestroy(Sender: TObject);
    5152    procedure FormShow(Sender: TObject);
    5253    procedure MenuItemToolbarClick(Sender: TObject);
     
    7778procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    7879begin
     80  FormContacts.Close;
    7981  Core.PersistentForm1.Save(Self);
    8082end;
     
    9092end;
    9193
     94procedure TFormMain.FormDestroy(Sender: TObject);
     95begin
     96  FormContacts.Free;
     97end;
     98
    9299procedure TFormMain.FormShow(Sender: TObject);
    93100begin
     
    96103  Core.ThemeManager1.UseTheme(Self);
    97104  Core.PersistentForm1.Load(Self);
     105
     106  FormContacts := TFormContacts.Create(nil);
     107  FormContacts.Contacts := TContactsFile(Core.DataFile).Contacts;
    98108  FormContacts.ManualDock(Self, nil, alClient);
    99109  FormContacts.Align := alClient;
Note: See TracChangeset for help on using the changeset viewer.