Changeset 86 for trunk/Forms/FormNew.pas
- Timestamp:
- Jun 7, 2024, 12:47:11 PM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormNew.pas
r85 r86 1 unit UFormNew; 2 3 {$mode delphi}{$H+} 1 unit FormNew; 4 2 5 3 interface … … 7 5 uses 8 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 UGame;7 Game, FormEx; 10 8 11 9 type … … 13 11 { TFormNew } 14 12 15 TFormNew = class(TForm )13 TFormNew = class(TFormEx) 16 14 ButtonCancel: TButton; 17 15 ButtonOk: TButton; … … 22 20 Label1: TLabel; 23 21 Label2: TLabel; 24 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);25 22 procedure FormCreate(Sender: TObject); 26 procedure FormShow(Sender: TObject);27 private28 29 23 public 30 24 procedure Load(Game: TGame); … … 32 26 end; 33 27 34 var35 FormNew: TFormNew;36 28 37 29 implementation … … 40 32 41 33 uses 42 UCore;34 Core; 43 35 44 36 { TFormNew } … … 48 40 I: TTileSkin; 49 41 begin 50 Core.Translator1.TranslateComponentRecursive(Self);51 Core.ThemeManager1.UseTheme(Self);52 42 ComboBoxSkin.Items.BeginUpdate; 53 43 try … … 58 48 ComboBoxSkin.Items.EndUpdate; 59 49 end; 60 end;61 62 procedure TFormNew.FormShow(Sender: TObject);63 begin64 Core.PersistentForm1.Load(Self);65 end;66 67 procedure TFormNew.FormClose(Sender: TObject; var CloseAction: TCloseAction);68 begin69 Core.PersistentForm1.Save(Self);70 50 end; 71 51
Note:
See TracChangeset
for help on using the changeset viewer.