Ignore:
Timestamp:
Feb 4, 2018, 12:47:01 PM (7 years ago)
Author:
chronos
Message:
  • Added: Status bar with number of contacts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r8 r13  
    3333    MenuItemFile: TMenuItem;
    3434    PopupMenuOpenRecent: TPopupMenu;
     35    StatusBar1: TStatusBar;
    3536    ToolBarOther: TToolBar;
    3637    ToolBarFile: TToolBar;
     
    6061
    6162uses
    62   UCore, UFormContacts;
     63  UCore, UFormContacts, UContact;
    6364
    6465resourcestring
     66  SCount = 'Count:';
    6567  SModified = 'Modified';
    6668
     
    120122  UpdateFormTitle;
    121123  CoolBar1.Visible := MenuItemToolbar.Checked;
     124  if Assigned(Core.DataFile) then
     125    StatusBar1.Panels[0].Text := SCount + ' ' + IntToStr(TcontactsFile(Core.DataFile).Contacts.Count)
     126    else StatusBar1.Panels[0].Text := '';
    122127end;
    123128
Note: See TracChangeset for help on using the changeset viewer.