Changeset 15 for trunk/Forms/UFormContact.pas
- Timestamp:
- Feb 27, 2018, 6:11:44 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContact.pas
r9 r15 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, UContact;9 ComCtrls, ActnList, Menus, UContact; 10 10 11 11 type … … 14 14 15 15 TFormContact = class(TForm) 16 AEditField: TAction; 17 ActionList1: TActionList; 16 18 ButtonCancel: TButton; 17 19 ButtonOk: TButton; … … 63 65 ListView1: TListView; 64 66 MemoNotes: TMemo; 67 MenuItem1: TMenuItem; 65 68 PageControlContact: TPageControl; 69 PopupMenu1: TPopupMenu; 66 70 TabSheetGeneral: TTabSheet; 67 71 TabSheetDetails: TTabSheet; 68 72 TabSheetAll: TTabSheet; 73 procedure AEditFieldExecute(Sender: TObject); 69 74 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 70 75 procedure FormCreate(Sender: TObject); … … 89 94 uses 90 95 UCore; 96 97 resourcestring 98 SFieldEdit = 'Field edit'; 99 SEditFieldValue = 'Edit field value'; 91 100 92 101 { TFormContact } … … 126 135 end; 127 136 137 procedure TFormContact.AEditFieldExecute(Sender: TObject); 138 begin 139 if Assigned(ListView1.Selected) then begin 140 Contact.Fields[TContactFieldIndex(ListView1.Selected.Index)] := 141 InputBox(SFieldEdit, SEditFieldValue, Contact.Fields[TContactFieldIndex(ListView1.Selected.Index)]); 142 end; 143 end; 144 128 145 procedure TFormContact.FormCreate(Sender: TObject); 129 146 begin 130 147 Core.CoolTranslator1.TranslateComponentRecursive(Self); 148 Core.ThemeManager1.UseTheme(Self); 131 149 Contact := nil; 132 150 end;
Note:
See TracChangeset
for help on using the changeset viewer.