Changeset 5 for trunk/UFormMain.pas
- Timestamp:
- Sep 24, 2019, 10:09:45 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 1 Game2048 2 2 Game2048.lps 3 Game2048.dbg 3 4 lib 5 heaptrclog.trc
-
- Property svn:ignore
-
trunk/UFormMain.pas
r2 r5 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 ActnList, UGame;9 ActnList, ExtCtrls, StdCtrls, UGame; 10 10 11 11 type … … 14 14 15 15 TFormMain = class(TForm) 16 AExit: TAction; 16 17 AGameNew: TAction; 17 18 ActionList1: TActionList; 18 19 MainMenu1: TMainMenu; 19 20 MenuItem1: TMenuItem; 21 MenuItem2: TMenuItem; 20 22 MenuItemGame: TMenuItem; 23 procedure AExitExecute(Sender: TObject); 21 24 procedure AGameNewExecute(Sender: TObject); 22 25 procedure FormCreate(Sender: TObject); … … 62 65 end; 63 66 67 procedure TFormMain.FormPaint(Sender: TObject); 68 begin 69 Game.Render(Canvas); 70 end; 71 64 72 procedure TFormMain.AGameNewExecute(Sender: TObject); 65 73 begin … … 69 77 Game.New; 70 78 end; 79 end; 80 81 procedure TFormMain.AExitExecute(Sender: TObject); 82 begin 83 Close; 71 84 end; 72 85 … … 82 95 begin 83 96 Game.Free; 84 end;85 86 procedure TFormMain.FormPaint(Sender: TObject);87 begin88 Game.Render(Canvas);89 97 end; 90 98
Note:
See TracChangeset
for help on using the changeset viewer.