Changeset 105 for trunk/Forms
- Timestamp:
- Dec 9, 2024, 4:40:34 PM (6 weeks ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormNew.lfm
r103 r105 35 35 Width = 497 36 36 HorzScrollBar.Page = 435 37 VertScrollBar.Page = 1 1837 VertScrollBar.Page = 160 38 38 Anchors = [akTop, akLeft, akRight, akBottom] 39 39 ClientHeight = 245 … … 69 69 Style = csDropDownList 70 70 TabOrder = 0 71 OnChange = ComboBoxSizeChange 71 72 end 72 73 object CheckBoxUndoEnabled: TCheckBox … … 86 87 TabOrder = 2 87 88 end 89 object Label2: TLabel 90 Left = 16 91 Height = 26 92 Top = 122 93 Width = 119 94 Caption = 'Disabled tiles:' 95 end 96 object SpinEditDisabledTiles: TSpinEdit 97 Left = 320 98 Height = 43 99 Top = 117 100 Width = 115 101 MaxValue = 10000 102 TabOrder = 3 103 end 88 104 end 89 105 end -
trunk/Forms/FormNew.lrj
r103 r105 5 5 {"hash":103901194,"name":"tformnew.label1.caption","sourcebytes":[66,111,97,114,100,32,115,105,122,101,58],"value":"Board size:"}, 6 6 {"hash":260260820,"name":"tformnew.checkboxundoenabled.caption","sourcebytes":[85,110,100,111,32,101,110,97,98,108,101,100],"value":"Undo enabled"}, 7 {"hash":146862089,"name":"tformnew.checkboxrecordhistory.caption","sourcebytes":[82,101,99,111,114,100,32,109,111,118,101,115,32,104,105,115,116,111,114,121],"value":"Record moves history"} 7 {"hash":146862089,"name":"tformnew.checkboxrecordhistory.caption","sourcebytes":[82,101,99,111,114,100,32,109,111,118,101,115,32,104,105,115,116,111,114,121],"value":"Record moves history"}, 8 {"hash":248990730,"name":"tformnew.label2.caption","sourcebytes":[68,105,115,97,98,108,101,100,32,116,105,108,101,115,58],"value":"Disabled tiles:"} 8 9 ]} -
trunk/Forms/FormNew.pas
r103 r105 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 7 Game, FormEx;7 Spin, Game, FormEx, Math; 8 8 9 9 type … … 18 18 ComboBoxSize: TComboBox; 19 19 Label1: TLabel; 20 Label2: TLabel; 20 21 ScrollBox1: TScrollBox; 22 SpinEditDisabledTiles: TSpinEdit; 23 procedure ComboBoxSizeChange(Sender: TObject); 21 24 public 25 procedure UpdateInterface; 22 26 procedure Load(Game: TGame); 23 27 procedure Save(Game: TGame); … … 30 34 31 35 { TFormNew } 36 37 procedure TFormNew.ComboBoxSizeChange(Sender: TObject); 38 begin 39 UpdateInterface; 40 end; 41 42 procedure TFormNew.UpdateInterface; 43 begin 44 SpinEditDisabledTiles.MaxValue := ComboBoxSize.ItemIndex + 2; 45 end; 46 32 47 procedure TFormNew.Load(Game: TGame); 33 48 begin … … 35 50 CheckBoxUndoEnabled.Checked := Game.UndoEnabled; 36 51 CheckBoxRecordHistory.Checked := Game.RecordHistory; 52 SpinEditDisabledTiles.Value := Game.DisabledTilesCount; 53 UpdateInterface; 37 54 end; 38 55 … … 42 59 Game.UndoEnabled := CheckBoxUndoEnabled.Checked; 43 60 Game.RecordHistory := CheckBoxRecordHistory.Checked; 61 Game.DisabledTilesCount := SpinEditDisabledTiles.Value; 44 62 end; 45 63
Note:
See TracChangeset
for help on using the changeset viewer.