Changeset 32 for trunk/Forms/FormMain.pas
- Timestamp:
- Jun 29, 2024, 7:58:36 AM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormMain.pas
r31 r32 1 unit UFormMain;1 unit FormMain; 2 2 3 3 interface … … 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 7 ComCtrls, UFormTables;7 ComCtrls, FormTables, FormEx; 8 8 9 9 type … … 11 11 { TFormMain } 12 12 13 TFormMain = class(TForm )13 TFormMain = class(TFormEx) 14 14 CoolBar1: TCoolBar; 15 15 MainMenu1: TMainMenu; … … 41 41 end; 42 42 43 var44 FormMain: TFormMain;45 46 43 47 44 implementation … … 50 47 51 48 uses 52 UCore;49 Core; 53 50 54 51 { TFormMain } … … 56 53 procedure TFormMain.FormActivate(Sender: TObject); 57 54 begin 58 Core. Init;55 Core.Core.Init; 59 56 // TODO: Toolbar height is incorrectly calculated 60 57 ToolBar1.ButtonHeight := ToolBar1.Height; … … 63 60 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 64 61 begin 65 Core.Done; 66 Core.PersistentForm1.Save(Self); 62 Core.Core.Done; 67 63 end; 68 64 … … 79 75 procedure TFormMain.FormShow(Sender: TObject); 80 76 begin 81 Core.PersistentForm1.Load(Self, True);82 77 SetToolbarHints; 83 78 DockInit; … … 86 81 procedure TFormMain.DockInit; 87 82 begin 88 FormTables.ManualDock( FormMain, nil, alClient);83 FormTables.ManualDock(Self, nil, alClient); 89 84 FormTables.Align := alClient; 90 85 FormTables.Show; … … 96 91 begin 97 92 NewCaption := Application.Title; 98 if Assigned(Core. DbClient) then99 NewCaption := Core. DbClient.ConnectProfile.Name + ' - ' + NewCaption;100 FormMain.Caption := NewCaption;93 if Assigned(Core.Core.DbClient) then 94 NewCaption := Core.Core.DbClient.ConnectProfile.Name + ' - ' + NewCaption; 95 Caption := NewCaption; 101 96 FormTables.UpdateInterface; 102 97 end;
Note:
See TracChangeset
for help on using the changeset viewer.