- Timestamp:
- Mar 30, 2018, 12:13:24 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContacts.lfm
r17 r19 7 7 ClientHeight = 605 8 8 ClientWidth = 807 9 DesignTimePPI = 12010 9 OnClose = FormClose 11 10 OnCreate = FormCreate 12 11 OnShow = FormShow 13 LCLVersion = '1.8.0. 6'12 LCLVersion = '1.8.0.4' 14 13 object ListView1: TListView 15 14 Left = 0 … … 41 40 item 42 41 Caption = 'Home phone' 43 Width = 1 0042 Width = 187 44 43 end> 45 44 MultiSelect = True … … 68 67 end 69 68 object ToolButton2: TToolButton 70 Left = 2469 Left = 30 71 70 Top = 2 72 71 Action = AModify 73 72 end 74 73 object ToolButton3: TToolButton 75 Left = 4774 Left = 59 76 75 Top = 2 77 76 Action = ARemove -
trunk/Forms/UFormContacts.pas
r17 r19 104 104 Core.PersistentForm1.Load(Self); 105 105 Core.ThemeManager1.UseTheme(Self); 106 Core.CoolTranslator1.TranslateComponentRecursive(Self); 106 107 ReloadList; 107 108 UpdateInterface; -
trunk/Forms/UFormMain.lfm
r17 r19 5 5 Width = 785 6 6 Caption = 'vCard Studio' 7 ClientHeight = 5067 ClientHeight = 497 8 8 ClientWidth = 785 9 DesignTimePPI = 12010 9 Menu = MainMenu1 11 10 OnClose = FormClose 12 11 OnCloseQuery = FormCloseQuery 13 12 OnCreate = FormCreate 13 OnDestroy = FormDestroy 14 14 OnShow = FormShow 15 LCLVersion = '1.8.0. 6'15 LCLVersion = '1.8.0.4' 16 16 object CoolBar1: TCoolBar 17 17 Left = 0 … … 105 105 object StatusBar1: TStatusBar 106 106 Left = 0 107 Height = 28108 Top = 4 78107 Height = 30 108 Top = 467 109 109 Width = 785 110 110 Panels = < -
trunk/Forms/UFormMain.pas
r17 r19 49 49 procedure FormCloseQuery(Sender: TObject; var CanClose: boolean); 50 50 procedure FormCreate(Sender: TObject); 51 procedure FormDestroy(Sender: TObject); 51 52 procedure FormShow(Sender: TObject); 52 53 procedure MenuItemToolbarClick(Sender: TObject); … … 77 78 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 78 79 begin 80 FormContacts.Close; 79 81 Core.PersistentForm1.Save(Self); 80 82 end; … … 90 92 end; 91 93 94 procedure TFormMain.FormDestroy(Sender: TObject); 95 begin 96 FormContacts.Free; 97 end; 98 92 99 procedure TFormMain.FormShow(Sender: TObject); 93 100 begin … … 96 103 Core.ThemeManager1.UseTheme(Self); 97 104 Core.PersistentForm1.Load(Self); 105 106 FormContacts := TFormContacts.Create(nil); 107 FormContacts.Contacts := TContactsFile(Core.DataFile).Contacts; 98 108 FormContacts.ManualDock(Self, nil, alClient); 99 109 FormContacts.Align := alClient; -
trunk/UCore.pas
r18 r19 383 383 UpdateInterface; 384 384 FormMain.UpdateInterface; 385 if Assigned(DataFile) then 386 FormContacts.Contacts := TContactsFile(DataFile).Contacts 387 else FormContacts.Contacts := nil; 388 FormContacts.ReloadList; 385 if Assigned(FormContacts) then begin 386 if Assigned(DataFile) then 387 FormContacts.Contacts := TContactsFile(DataFile).Contacts 388 else FormContacts.Contacts := nil; 389 FormContacts.ReloadList; 390 end; 389 391 end; 390 392 -
trunk/vCardStudio.lpr
r17 r19 30 30 Application.CreateForm(TFormMain, FormMain); 31 31 Application.CreateForm(TCore, Core); 32 Application.CreateForm(TFormContacts, FormContacts);33 32 Application.Run; 34 33 end.
Note:
See TracChangeset
for help on using the changeset viewer.