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

    r147 r149  
    55uses
    66  Classes, SysUtils, FileUtil, SynEdit, SynHighlighterIni, Forms, Controls,
    7   Graphics, Dialogs, Menus, ActnList,
     7  Graphics, Dialogs, Menus, ActnList, FormEx,
    88  SynEditHighlighter, SynHighlighterAny, SynHighlighterJava, BFHighlighter;
    99
     
    1212  { TFormSourceCode }
    1313
    14   TFormSourceCode = class(TForm)
     14  TFormSourceCode = class(TFormEx)
    1515    AGenerateText: TAction;
    1616    ACutToClipboard: TAction;
     
    5151    procedure FormDestroy(Sender: TObject);
    5252    procedure MemoSourceChange(Sender: TObject);
    53     procedure MemoSourceKeyDown(Sender: TObject; var Key: Word;
    54       Shift: TShiftState);
    55     procedure MemoSourceKeyPress(Sender: TObject; var Key: char);
    5653    procedure MemoSourceKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState
    5754      );
     
    6360    FOnUpdateStatusBar: TNotifyEvent;
    6461  public
    65     procedure UpdateInterface;
    6662    procedure UpdateTheme;
    6763    property OnUpdateStatusBar: TNotifyEvent read FOnUpdateStatusBar
     
    145141procedure TFormSourceCode.FormCreate(Sender: TObject);
    146142begin
    147   Core.Core.Translator.TranslateComponentRecursive(Self);
    148   Core.Core.ThemeManager.UseTheme(Self);
    149 
    150143  BFHighlighter := TSynBrainFuckHl.Create(nil);
    151144  SynEditSource.Highlighter := BFHighlighter;
     
    156149  SynEditSource.Highlighter := nil;
    157150  FreeAndNil(BFHighlighter);
    158 end;
    159 
    160 procedure TFormSourceCode.UpdateInterface;
    161 begin
    162151end;
    163152
     
    189178end;
    190179
    191 procedure TFormSourceCode.MemoSourceKeyDown(Sender: TObject; var Key: Word;
    192   Shift: TShiftState);
    193 begin
    194 end;
    195 
    196 procedure TFormSourceCode.MemoSourceKeyPress(Sender: TObject; var Key: char);
    197 begin
    198 end;
    199 
    200180procedure TFormSourceCode.MemoSourceKeyUp(Sender: TObject; var Key: Word;
    201181  Shift: TShiftState);
Note: See TracChangeset for help on using the changeset viewer.