Changeset 28 for trunk/Forms/UFormMain.pas
- Timestamp:
- Sep 10, 2022, 10:21:48 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r27 r28 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 7 ComCtrls ;7 ComCtrls, UFormTables; 8 8 9 9 type … … 30 30 procedure FormActivate(Sender: TObject); 31 31 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 32 procedure FormCreate(Sender: TObject); 33 procedure FormDestroy(Sender: TObject); 32 34 procedure FormShow(Sender: TObject); 33 35 private 34 36 procedure SetToolbarHints; 35 37 public 38 FormTables: TFormTables; 36 39 procedure DockInit; 37 40 procedure UpdateInterface; … … 47 50 48 51 uses 49 UCore , UFormTables;52 UCore; 50 53 51 54 { TFormMain } … … 62 65 Core.Done; 63 66 Core.PersistentForm1.Save(Self); 67 end; 68 69 procedure TFormMain.FormCreate(Sender: TObject); 70 begin 71 FormTables := TFormTables.Create(nil); 72 end; 73 74 procedure TFormMain.FormDestroy(Sender: TObject); 75 begin 76 FreeAndNil(FormTables); 64 77 end; 65 78 … … 86 99 NewCaption := Core.DbClient.ConnectProfile.Name + ' - ' + NewCaption; 87 100 FormMain.Caption := NewCaption; 101 FormTables.UpdateInterface; 88 102 end; 89 103
Note:
See TracChangeset
for help on using the changeset viewer.