Ignore:
Timestamp:
Sep 23, 2016, 12:29:16 PM (8 years ago)
Author:
chronos
Message:
  • Added: Main form hide action to tray icon popup menu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r100 r102  
    1616
    1717  TFormMain = class(TForm)
     18    AHide: TAction;
    1819    AExport: TAction;
    1920    AProcessImports: TAction;
     
    5758    MenuItem24: TMenuItem;
    5859    MenuItem25: TMenuItem;
     60    MenuItem26: TMenuItem;
     61    MenuItem27: TMenuItem;
     62    MenuItem28: TMenuItem;
    5963    MenuItemToolbar: TMenuItem;
    6064    MenuItem4: TMenuItem;
     
    9397    procedure AFileSaveAsExecute(Sender: TObject);
    9498    procedure AFileSaveExecute(Sender: TObject);
     99    procedure AHideExecute(Sender: TObject);
    95100    procedure AImportExecute(Sender: TObject);
    96101    procedure AProcessImportsExecute(Sender: TObject);
     
    182187begin
    183188  if Core.InitializeFinished then Core.PersistentForm1.Save(Self);
     189  UpdateInterface;
    184190end;
    185191
     
    279285    UpdateInterface;
    280286  end else AFileSaveAs.Execute;
     287end;
     288
     289procedure TFormMain.AHideExecute(Sender: TObject);
     290begin
     291  Hide;
    281292end;
    282293
     
    598609  AShowImportFormats.Enabled := Assigned(Core.AcronymDb);
    599610  ToolBar1.Visible := MenuItemToolbar.Checked;
     611  AHide.Enabled := FormMain.Visible;
    600612
    601613  Title := Application.Title;
Note: See TracChangeset for help on using the changeset viewer.