Changeset 130 for trunk/Forms/UFormCharts.pas
- Timestamp:
- Jun 18, 2017, 11:27:44 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormCharts.pas
r128 r130 23 23 public 24 24 procedure Redraw; 25 procedure Translate; 25 26 end; 26 27 … … 34 35 uses 35 36 UCore, UGame; 37 38 resourcestring 39 SOccupiedCells = 'Occupied cells'; 40 SMilitaryPower = 'Military power'; 41 SDiscoveredCells = 'Discovered cells'; 42 SCitiesCount = 'Cities count'; 43 36 44 37 45 { TFormCharts } … … 50 58 begin 51 59 Core.PersistentForm.Load(Self); 60 if (ComboBox1.ItemIndex = -1) and (ComboBox1.Items.Count > 0) then 61 ComboBox1.ItemIndex := 0; 52 62 Redraw; 63 Translate; 53 64 end; 54 65 … … 74 85 end; 75 86 87 procedure TFormCharts.Translate; 88 var 89 LastIndex: Integer; 90 begin 91 with ComboBox1 do begin 92 LastIndex := ItemIndex; 93 Clear; 94 Items.Add(SOccupiedCells); 95 Items.Add(SMilitaryPower); 96 Items.Add(SDiscoveredCells); 97 Items.Add(SCitiesCount); 98 ItemIndex := LastIndex; 99 end; 100 end; 101 76 102 end. 77 103
Note:
See TracChangeset
for help on using the changeset viewer.