Changeset 61 for trunk/Forms
- Timestamp:
- Dec 9, 2021, 12:31:17 AM (3 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContacts.lfm
r53 r61 14 14 object ListView1: TListView 15 15 Left = 0 16 Height = 8 0116 Height = 810 17 17 Top = 0 18 18 Width = 1210 … … 36 36 end 37 37 item 38 Caption = 'Cell phone' 38 Caption = 'Phone' 39 Width = 150 40 end 41 item 42 Caption = 'Mobile' 39 43 Width = 150 40 44 end 41 45 item 42 46 Caption = 'Home phone' 43 Width = 295 47 Width = 150 48 end 49 item 50 Caption = 'Work phone' 51 Width = 150 44 52 end> 45 53 MultiSelect = True … … 58 66 Left = 0 59 67 Height = 39 60 Top = 8 3368 Top = 842 61 69 Width = 1210 62 70 Align = alBottom … … 106 114 Left = 0 107 115 Height = 32 108 Top = 8 01116 Top = 810 109 117 Width = 1210 110 118 OnChange = ListViewFilter1Change … … 113 121 object StatusBar1: TStatusBar 114 122 Left = 0 115 Height = 36116 Top = 8 72123 Height = 27 124 Top = 881 117 125 Width = 1210 118 126 Panels = < -
trunk/Forms/UFormContacts.lrj
r53 r61 5 5 {"hash":36093573,"name":"tformcontacts.listview1.columns[2].caption","sourcebytes":[77,105,100,100,108,101,32,110,97,109,101],"value":"Middle name"}, 6 6 {"hash":174397109,"name":"tformcontacts.listview1.columns[3].caption","sourcebytes":[76,97,115,116,32,78,97,109,101],"value":"Last Name"}, 7 {"hash":242387557,"name":"tformcontacts.listview1.columns[4].caption","sourcebytes":[67,101,108,108,32,112,104,111,110,101],"value":"Cell phone"}, 8 {"hash":124920949,"name":"tformcontacts.listview1.columns[5].caption","sourcebytes":[72,111,109,101,32,112,104,111,110,101],"value":"Home phone"}, 7 {"hash":5699141,"name":"tformcontacts.listview1.columns[4].caption","sourcebytes":[80,104,111,110,101],"value":"Phone"}, 8 {"hash":88444965,"name":"tformcontacts.listview1.columns[5].caption","sourcebytes":[77,111,98,105,108,101],"value":"Mobile"}, 9 {"hash":124920949,"name":"tformcontacts.listview1.columns[6].caption","sourcebytes":[72,111,109,101,32,112,104,111,110,101],"value":"Home phone"}, 10 {"hash":225645765,"name":"tformcontacts.listview1.columns[7].caption","sourcebytes":[87,111,114,107,32,112,104,111,110,101],"value":"Work phone"}, 9 11 {"hash":18340,"name":"tformcontacts.aadd.caption","sourcebytes":[65,100,100],"value":"Add"}, 10 12 {"hash":88453081,"name":"tformcontacts.amodify.caption","sourcebytes":[77,111,100,105,102,121],"value":"Modify"}, -
trunk/Forms/UFormContacts.pas
r53 r61 120 120 AddItem(Fields[cfMiddleName]); 121 121 AddItem(Fields[cfLastName]); 122 AddItem(Fields[cfTel]); 122 123 AddItem(Fields[cfTelCell]); 123 124 AddItem(Fields[cfTelHome]); 125 AddItem(Fields[cfTelWork]); 124 126 Item.Data := ListViewSort1.List[Item.Index]; 125 127 end; … … 158 160 2: Result := CompareString(TContact(Item1).Fields[cfMiddleName], TContact(Item2).Fields[cfMiddleName]); 159 161 3: Result := CompareString(TContact(Item1).Fields[cfLastName], TContact(Item2).Fields[cfLastName]); 160 4: Result := CompareString(TContact(Item1).Fields[cfTelCell], TContact(Item2).Fields[cfTelCell]); 161 5: Result := CompareString(TContact(Item1).Fields[cfTelHome], TContact(Item2).Fields[cfTelHome]); 162 4: Result := CompareString(TContact(Item1).Fields[cfTel], TContact(Item2).Fields[cfTel]); 163 5: Result := CompareString(TContact(Item1).Fields[cfTelCell], TContact(Item2).Fields[cfTelCell]); 164 6: Result := CompareString(TContact(Item1).Fields[cfTelHome], TContact(Item2).Fields[cfTelHome]); 165 7: Result := CompareString(TContact(Item1).Fields[cfTelWork], TContact(Item2).Fields[cfTelWork]); 162 166 end; 163 167 if ListViewSort1.Order = soDown then Result := -Result; … … 196 200 UTF8LowerCase(TContact(List.Items[I]).Fields[cfLastName])) > 0 then Inc(FoundCount); 197 201 if Pos(UTF8LowerCase(StringGrid.Cells[4, 0]), 202 UTF8LowerCase(TContact(List.Items[I]).Fields[cfTel])) > 0 then Inc(FoundCount); 203 if Pos(UTF8LowerCase(StringGrid.Cells[5, 0]), 198 204 UTF8LowerCase(TContact(List.Items[I]).Fields[cfTelCell])) > 0 then Inc(FoundCount); 199 if Pos(UTF8LowerCase(StringGrid.Cells[ 5, 0]),205 if Pos(UTF8LowerCase(StringGrid.Cells[6, 0]), 200 206 UTF8LowerCase(TContact(List.Items[I]).Fields[cfTelHome])) > 0 then Inc(FoundCount); 207 if Pos(UTF8LowerCase(StringGrid.Cells[7, 0]), 208 UTF8LowerCase(TContact(List.Items[I]).Fields[cfTelWork])) > 0 then Inc(FoundCount); 201 209 if FoundCount <> EnteredCount then List.Delete(I); 202 210 end;
Note:
See TracChangeset
for help on using the changeset viewer.