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/FormHelp.pas

    r316 r317  
    1 unit UFormHelp;
     1unit FormHelp;
    22
    33interface
    44
    55uses
    6   Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
     6  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
     7  FormEx;
    78
    89type
     
    1011  { TFormHelp }
    1112
    12   TFormHelp = class(TForm)
     13  TFormHelp = class(TFormEx)
    1314    Memo1: TMemo;
    14     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    1515    procedure FormCreate(Sender: TObject);
    16     procedure FormShow(Sender: TObject);
    1716  end;
    18 
    19 var
    20   FormHelp: TFormHelp;
    2117
    2218
    2319implementation
    24 
    25 uses
    26   UCore;
    2720
    2821resourcestring
     
    6053procedure TFormHelp.FormCreate(Sender: TObject);
    6154begin
    62   Core.CoolTranslator1.TranslateComponentRecursive(Self);
    6355  Memo1.Lines.Text := SContent;
    64 end;
    65 
    66 procedure TFormHelp.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    67 begin
    68   Core.PersistentForm.Save(Self);
    69 end;
    70 
    71 procedure TFormHelp.FormShow(Sender: TObject);
    72 begin
    73   Core.PersistentForm.Load(Self);
    74   Core.ThemeManager1.UseTheme(Self);
    7556end;
    7657
Note: See TracChangeset for help on using the changeset viewer.