Ignore:
Timestamp:
Jun 21, 2024, 12:44:53 PM (5 months ago)
Author:
chronos
Message:
  • Modified: Remove U prefix from unit names.
  • Modified: Use TFormEx for all forms for code simplification.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormList.pas

    r316 r317  
    1 unit UFormList;
     1unit FormList;
    22
    33interface
     
    55uses
    66  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls,
    7   ActnList, Menus, UItemList;
     7  ActnList, Menus, ItemList, FormEx;
    88
    99type
    1010  { TFormList }
    1111
    12   TFormList = class(TForm)
     12  TFormList = class(TFormEx)
    1313    AAdd: TAction;
    1414    ASelectAll: TAction;
     
    3434    procedure ARemoveExecute(Sender: TObject);
    3535    procedure ASelectAllExecute(Sender: TObject);
    36     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    3736    procedure FormCreate(Sender: TObject);
    3837    procedure FormShow(Sender: TObject);
     
    5857  end;
    5958
    60 var
    61   FormList: TFormList;
    62 
    6359
    6460implementation
     
    6763
    6864uses
    69   UCore, UFormItem;
     65  FormItem;
    7066
    7167resourcestring
     
    176172end;
    177173
    178 procedure TFormList.FormClose(Sender: TObject;
    179   var CloseAction: TCloseAction);
    180 begin
    181   Core.PersistentForm.Save(Self);
    182 end;
    183 
    184174procedure TFormList.FormCreate(Sender: TObject);
    185175var
    186176  I: Integer;
    187177begin
    188   Core.CoolTranslator1.TranslateComponentRecursive(Self);
    189   Core.ThemeManager1.UseTheme(Self);
    190178  for I := 0 to ToolBar1.ButtonCount - 1 do
    191179    ToolBar1.Buttons[I].Hint := ToolBar1.Buttons[I].Caption;
     
    196184procedure TFormList.FormShow(Sender: TObject);
    197185begin
    198   Core.PersistentForm.Load(Self);
    199186  UpdateListViewColumns;
    200187  UpdateList;
Note: See TracChangeset for help on using the changeset viewer.