Changeset 74 for trunk/Forms


Ignore:
Timestamp:
Dec 13, 2021, 11:45:47 PM (3 years ago)
Author:
chronos
Message:
  • Added: Logo contact field.
  • Fixed: Copy and paste were incorrectly copying duplicate contacts.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormContacts.lfm

    r73 r74  
    1414  object ListView1: TListView
    1515    Left = 0
    16     Height = 801
     16    Height = 810
    1717    Top = 0
    1818    Width = 1210
     
    6666    Left = 0
    6767    Height = 39
    68     Top = 833
     68    Top = 842
    6969    Width = 1210
    7070    Align = alBottom
     
    114114    Left = 0
    115115    Height = 32
    116     Top = 801
     116    Top = 810
    117117    Width = 1210
    118118    OnChange = ListViewFilter1Change
     
    121121  object StatusBar1: TStatusBar
    122122    Left = 0
    123     Height = 36
    124     Top = 872
     123    Height = 27
     124    Top = 881
    125125    Width = 1210
    126126    Panels = <   
  • trunk/Forms/UFormContacts.pas

    r73 r74  
    355355  for I := 0 to ListView1.Items.Count - 1 do
    356356    if ListView1.Items[I].Selected then begin
     357      Strings.Clear;
    357358      TContact(ListView1.Items[I].Data).SaveToStrings(Strings);
    358359      Text := Text + Strings.Text;
     
    375376    for I := 0 to ListView1.Items.Count - 1 do
    376377      if ListView1.Items[I].Selected then begin
     378        Strings.Clear;
    377379        TContact(ListView1.Items[I].Data).SaveToStrings(Strings);
    378380        Text := Text + Strings.Text;
     
    562564  ALoadFromFile.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
    563565  ASaveToFile.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
     566  ACopy.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
     567  ACut.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
     568  APaste.Enabled := Assigned(Contacts) and (Clipboard.AsText <> '');
    564569end;
    565570
Note: See TracChangeset for help on using the changeset viewer.