Ignore:
Timestamp:
Jun 5, 2024, 9:58:43 AM (5 months ago)
Author:
chronos
Message:
  • Modified: Use TFormEx class from Common package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormTargetCode.pas

    r145 r149  
    55uses
    66  Classes, SysUtils, FileUtil, SynEdit, SynHighlighterAny, SynHighlighterPas,
    7   SynHighlighterCpp, SynHighlighterPHP, SynHighlighterJava,
     7  SynHighlighterCpp, SynHighlighterPHP, SynHighlighterJava, FormEx,
    88  SynHighlighterPython, SynHighlighterJScript, Forms, Controls, Graphics,
    99  Dialogs, Menus, ActnList, strutils;
     
    1313  { TFormTargetCode }
    1414
    15   TFormTargetCode = class(TForm)
     15  TFormTargetCode = class(TFormEx)
    1616    AShrinkCode: TAction;
    1717    AFormatCode: TAction;
     
    2323    procedure AFormatCodeExecute(Sender: TObject);
    2424    procedure AShrinkCodeExecute(Sender: TObject);
    25     procedure FormCreate(Sender: TObject);
    2625  public
    2726    procedure SetHighlighter(SourceExt: string);
     
    3231
    3332{$R *.lfm}
    34 
    35 uses
    36   Core;
    3733
    3834{ TFormTargetCode }
     
    8480end;
    8581
    86 procedure TFormTargetCode.FormCreate(Sender: TObject);
    87 begin
    88   Core.Core.Translator.TranslateComponentRecursive(Self);
    89   Core.Core.ThemeManager.UseTheme(Self);
    90 end;
    91 
    9282procedure TFormTargetCode.SetHighlighter(SourceExt: string);
    9383begin
Note: See TracChangeset for help on using the changeset viewer.