Changeset 31 for trunk/UCore.pas


Ignore:
Timestamp:
Oct 12, 2019, 10:47:02 PM (5 years ago)
Author:
chronos
Message:
  • Added: New form accessible from menu Tools - Moves history with game moves history.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r29 r31  
    1616    AAbout: TAction;
    1717    AComputer: TAction;
     18    AHistory: TAction;
    1819    AHelp: TAction;
    1920    AUndo: TAction;
     
    3031    procedure AExitExecute(Sender: TObject);
    3132    procedure AHelpExecute(Sender: TObject);
     33    procedure AHistoryExecute(Sender: TObject);
    3234    procedure ANewExecute(Sender: TObject);
    3335    procedure ASettingsExecute(Sender: TObject);
     
    5456
    5557uses
    56   UFormMain, UFormSettings, UFormAbout, UFormNew, UFormHelp, UFormComputer;
     58  UFormMain, UFormSettings, UFormAbout, UFormNew, UFormHelp, UFormComputer,
     59  UFormHistory;
    5760
    5861resourcestring
     
    131134end;
    132135
     136procedure TCore.AHistoryExecute(Sender: TObject);
     137begin
     138  FormHistory := TFormHistory.Create(nil);
     139  try
     140    FormHistory.ShowModal;
     141  finally
     142    FreeAndNil(FormHistory);
     143  end;
     144end;
     145
    133146procedure TCore.ANewExecute(Sender: TObject);
    134147begin
Note: See TracChangeset for help on using the changeset viewer.