Changeset 85 for trunk/UCore.pas


Ignore:
Timestamp:
Jun 7, 2024, 11:59:43 AM (5 months ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r84 r85  
    66
    77uses
    8   Classes, SysUtils, UTheme, UPersistentForm, UApplicationInfo, UTranslator,
    9   URegistry, UAboutDialog, UGame, ActnList, Forms, Controls, Dialogs;
     8  Classes, SysUtils, Theme, PersistentForm, ApplicationInfo, Translator,
     9  RegistryEx, UGame, ActnList, Forms, Controls, Dialogs;
    1010
    1111type
     
    1515  TCore = class(TDataModule)
    1616    AAbout: TAction;
    17     AboutDialog1: TAboutDialog;
    1817    AComputer: TAction;
    1918    AHistory: TAction;
     
    5655  Core: TCore;
    5756
     57
    5858implementation
    5959
     
    6161
    6262uses
    63   UFormMain, UFormSettings, UFormNew, UFormHelp, UFormComputer,
     63  UFormMain, UFormSettings, UFormNew, UFormHelp, UFormComputer, FormAbout,
    6464  UFormHistory;
    6565
     
    112112
    113113procedure TCore.AAboutExecute(Sender: TObject);
    114 begin
    115   AboutDialog1.Show;
     114var
     115  FormAbout: TFormAbout;
     116begin
     117  FormAbout := TFormAbout.Create(nil);
     118  try
     119    FormAbout.ApplicationInfo := ApplicationInfo1;
     120    FormAbout.ShowModal;
     121  finally
     122    FormAbout.Free;
     123  end;
    116124end;
    117125
Note: See TracChangeset for help on using the changeset viewer.