Changeset 74 for trunk/Forms


Ignore:
Timestamp:
Mar 26, 2024, 10:57:56 PM (8 months ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormMain.lfm

    r73 r74  
    2222    Top = 555
    2323    Width = 770
    24     Panels = <   
     24    Panels = <
    2525      item
    2626        Width = 74
    27       end   
     27      end
    2828      item
    2929        Width = 74
    30       end   
     30      end
    3131      item
    3232        Width = 74
    33       end   
     33      end
    3434      item
    3535        Width = 74
    36       end   
     36      end
    3737      item
    3838        Width = 74
    39       end   
     39      end
    4040      item
    4141        Width = 74
    42       end   
     42      end
    4343      item
    4444        Width = 74
     
    133133    end
    134134  end
    135   object AboutDialog1: TAboutDialog
    136     Translator = Core.Translator1
    137     ThemeManager = Core.ThemeManager1
    138     ApplicationInfo = Core.ApplicationInfo
    139     Left = 308
    140     Top = 181
    141   end
    142135end
  • trunk/Forms/FormMain.pas

    r73 r74  
    66  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, LCLType,
    77  Dialogs, ExtCtrls, ComCtrls, Menus, ActnList, Engine, Platform, Math,
    8   DateUtils, GraphType, UPersistentForm, UApplicationInfo, UTranslator,
    9   URegistry, UAboutDialog, FormNewGame, FormMap;
     8  DateUtils, GraphType, PersistentForm, ApplicationInfo, Translator,
     9  RegistryEx, FormAbout, FormNewGame, FormMap;
    1010
    1111type
     
    1515  TFormMain = class(TForm)
    1616    AAbout: TAction;
    17     AboutDialog1: TAboutDialog;
    1817    AShowRawImageDesc: TAction;
    1918    AShowMap: TAction;
     
    248247
    249248procedure TFormMain.AAboutExecute(Sender: TObject);
    250 begin
    251   AboutDialog1.Show;
     249var
     250  FormAbout: TFormAbout;
     251begin
     252  try
     253    FormAbout := TFormAbout.Create(nil);
     254    FormAbout.ApplicationInfo := Core.Core.ApplicationInfo;
     255    FormAbout.ShowModal;
     256  finally
     257    FreeAndNil(FormAbout);
     258  end;
    252259end;
    253260
Note: See TracChangeset for help on using the changeset viewer.