Changeset 317 for trunk/Forms/FormCharts.pas
- Timestamp:
- Jun 21, 2024, 12:44:53 PM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormCharts.pas
r316 r317 1 unit UFormCharts;1 unit FormCharts; 2 2 3 3 interface … … 5 5 uses 6 6 Classes, SysUtils, FileUtil, TAGraph, TASeries, Forms, Controls, Graphics, 7 Dialogs, StdCtrls ;7 Dialogs, StdCtrls, FormEx; 8 8 9 9 type … … 11 11 { TFormCharts } 12 12 13 TFormCharts = class(TForm )13 TFormCharts = class(TFormEx) 14 14 Chart1: TChart; 15 15 ComboBox1: TComboBox; 16 16 procedure ComboBox1Change(Sender: TObject); 17 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);18 17 procedure FormShow(Sender: TObject); 19 18 public … … 21 20 procedure Translate; 22 21 end; 23 24 var25 FormCharts: TFormCharts;26 22 27 23 … … 31 27 32 28 uses 33 UCore, UGame, UPlayer;29 Core, Game, Player; 34 30 35 31 resourcestring … … 48 44 end; 49 45 50 procedure TFormCharts.FormClose(Sender: TObject; var CloseAction: TCloseAction);51 begin52 Core.PersistentForm.Save(Self);53 end;54 55 46 procedure TFormCharts.FormShow(Sender: TObject); 56 47 begin 57 Core.PersistentForm.Load(Self);58 Core.ThemeManager1.UseTheme(Self);59 48 Redraw; 60 49 Translate; … … 70 59 begin 71 60 Chart1.Series.Clear; 72 for I := 0 to Core. Game.Players.Count - 1 do73 with TPlayer(Core. Game.Players[I]) do begin61 for I := 0 to Core.Core.Game.Players.Count - 1 do 62 with TPlayer(Core.Core.Game.Players[I]) do begin 74 63 NewSeries := TLineSeries.Create(nil); 75 64 NewSeries.LinePen.Color := Color; … … 89 78 LastIndex: Integer; 90 79 begin 91 Core.Co olTranslator1.TranslateComponentRecursive(Self);80 Core.Core.Translator1.TranslateComponentRecursive(Self); 92 81 with ComboBox1 do begin 93 82 LastIndex := ItemIndex;
Note:
See TracChangeset
for help on using the changeset viewer.