Changeset 22 for trunk/Forms/UNewGameForm.pas
- Timestamp:
- Sep 28, 2011, 3:10:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UNewGameForm.pas
r21 r22 18 18 Label1: TLabel; 19 19 ListView1: TListView; 20 procedure ButtonStartClick(Sender: TObject); 20 21 procedure FormCreate(Sender: TObject); 22 procedure ListView1Change(Sender: TObject; Item: TListItem; 23 Change: TItemChange); 21 24 private 22 25 { private declarations } … … 52 55 NewItem.SubItems.Add(''); 53 56 NewItem.Checked := Enabled; 57 NewItem.Data := Pointer(Engine.Players[I]); 54 58 end; 55 59 finally … … 58 62 end; 59 63 64 procedure TNewGameForm.ListView1Change(Sender: TObject; Item: TListItem; 65 Change: TItemChange); 66 begin 67 if Change = ctState then 68 TPlayer(Item.Data).Enabled := Item.Checked; 69 end; 70 71 procedure TNewGameForm.ButtonStartClick(Sender: TObject); 72 begin 73 74 end; 75 60 76 end. 61 77
Note:
See TracChangeset
for help on using the changeset viewer.