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

    r316 r317  
    1 unit UFormChat;
     1unit FormChat;
    22
    33interface
     
    55uses
    66  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    7   UGame, UGameClient;
     7  Game, GameClient, FormEx;
    88
    99type
     
    1111  { TFormChat }
    1212
    13   TFormChat = class(TForm)
     13  TFormChat = class(TFormEx)
    1414    ButtonMessageSend: TButton;
    1515    EditMessage: TEdit;
     
    1818    procedure ButtonMessageSendClick(Sender: TObject);
    1919    procedure EditMessageKeyPress(Sender: TObject; var Key: char);
    20     procedure FormCreate(Sender: TObject);
    21     procedure FormShow(Sender: TObject);
    22   private
    23 
    2420  public
    2521    Client: TClient;
    2622  end;
    27 
    28 var
    29   FormChat: TFormChat;
    3023
    3124
     
    3427{$R *.lfm}
    3528
    36 uses
    37   UCore;
    38 
    3929{ TFormChat }
    4030
     
    4232begin
    4333  if Key = #13 then ButtonMessageSend.Click;
    44 end;
    45 
    46 procedure TFormChat.FormCreate(Sender: TObject);
    47 begin
    48   Core.CoolTranslator1.TranslateComponentRecursive(Self);
    49 end;
    50 
    51 procedure TFormChat.FormShow(Sender: TObject);
    52 begin
    53   Core.ThemeManager1.UseTheme(Self);
    5434end;
    5535
Note: See TracChangeset for help on using the changeset viewer.