Ignore:
Timestamp:
Aug 23, 2022, 10:06:54 AM (2 years ago)
Author:
chronos
Message:
  • Added: Allow to configure visible columns in contacts table.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r129 r138  
    1919    MenuItem12: TMenuItem;
    2020    MenuItem13: TMenuItem;
     21    MenuItemColumns: TMenuItem;
    2122    MenuItem3: TMenuItem;
    2223    MenuItem4: TMenuItem;
     
    5960    procedure FormResize(Sender: TObject);
    6061    procedure FormShow(Sender: TObject);
     62    procedure MenuItemColumnsClick(Sender: TObject);
    6163    procedure MenuItemToolbarClick(Sender: TObject);
    6264  private
     
    7678
    7779uses
    78   UCore, UFormContacts, UVCard, UVCardFile;
     80  UCore, UFormContacts, UVCard, UVCardFile, URegistry;
    7981
    8082resourcestring
     
    121123    CoolBar1.AutosizeBands;
    122124
     125    FormContacts.Context := TRegistryContext.Create(Core.ApplicationInfo1.RegistryRoot,
     126      Core.ApplicationInfo1.RegistryKey + '\ContactsColumns');
    123127    FormContacts.Contacts := TVCardFile(Core.DataFile).VCard.Contacts;
    124128    FormContacts.ManualDock(Self, nil, alClient);
     
    128132    FormContacts.EndUpdate;
    129133  end;
     134end;
     135
     136procedure TFormMain.MenuItemColumnsClick(Sender: TObject);
     137begin
     138  FormContacts.AColumns.Execute;
    130139end;
    131140
Note: See TracChangeset for help on using the changeset viewer.