Ignore:
Timestamp:
Jan 17, 2025, 9:05:54 PM (4 days ago)
Author:
chronos
Message:
  • Modified: Updated Common package.
  • Modified: Remove U prefix from unit names.
  • Modified: Use Gneeric.Collections instead of fgl.
  • Modified: Do not use global form variables.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormAcronym.pas

    r218 r219  
    1 unit UFormAcronym;
    2 
    3 {$mode delphi}
     1unit FormAcronym;
    42
    53interface
     
    75uses
    86  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus,
    9   StdCtrls, ActnList, UAcronym;
     7  StdCtrls, ActnList, Acronym, FormEx;
    108
    119type
     
    1311  { TFormAcronym }
    1412
    15   TFormAcronym = class(TForm)
     13  TFormAcronym = class(TFormEx)
    1614    ACategoryRemove: TAction;
    1715    ACategoryAdd: TAction;
     
    3735    procedure ACategoryRemoveExecute(Sender: TObject);
    3836    procedure EditMeaningKeyPress(Sender: TObject; var Key: char);
    39     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    40     procedure FormCreate(Sender: TObject);
    4137    procedure FormShow(Sender: TObject);
    4238    procedure ListBoxCategoriesSelectionChange(Sender: TObject; User: boolean);
     
    4844  end;
    4945
    50 var
    51   FormAcronym: TFormAcronym;
    5246
    5347implementation
     
    5650
    5751uses
    58   UCore, UFormCategorySelect;
     52  FormCategorySelect;
    5953
    6054{ TFormAcronym }
    61 
    62 procedure TFormAcronym.FormClose(Sender: TObject; var CloseAction: TCloseAction
    63   );
    64 begin
    65   Core.PersistentForm1.Save(Self);
    66 end;
    67 
    68 procedure TFormAcronym.FormCreate(Sender: TObject);
    69 begin
    70   Core.Translator.TranslateComponentRecursive(Self);
    71   Core.ThemeManager.UseTheme(Self);
    72 end;
    7355
    7456procedure TFormAcronym.ACategoryAddExecute(Sender: TObject);
    7557var
    7658  I: Integer;
     59  FormCategorySelect: TFormCategorySelect;
    7760begin
    7861  FormCategorySelect := TFormCategorySelect.Create(Self);
     
    11194procedure TFormAcronym.FormShow(Sender: TObject);
    11295begin
    113   Core.PersistentForm1.Load(Self);
    11496  UpdateInterface;
    11597end;
Note: See TracChangeset for help on using the changeset viewer.