Changeset 21
- Timestamp:
- Apr 8, 2015, 10:55:35 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UFormMain.lfm
r16 r21 23 23 OnMouseUp = PaintBox1MouseUp 24 24 OnPaint = PaintBox1Paint 25 OnResize = PaintBox1Resize 25 26 end 26 27 object Timer1: TTimer -
trunk/UFormMain.pas
r16 r21 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 ExtCtrls, UEngine ;9 ExtCtrls, UEngine, LCLType; 10 10 11 11 type … … 28 28 Shift: TShiftState; X, Y: Integer); 29 29 procedure PaintBox1Paint(Sender: TObject); 30 procedure PaintBox1Resize(Sender: TObject); 30 31 procedure Timer1Timer(Sender: TObject); 31 32 private 32 { private declarations }33 procedure EraseBackground(DC: HDC); override; 33 34 public 34 35 Engine: TEngine; … … 99 100 end; 100 101 102 procedure TFormMain.PaintBox1Resize(Sender: TObject); 103 begin 104 //Engine. 105 end; 106 101 107 procedure TFormMain.Timer1Timer(Sender: TObject); 102 108 begin 109 Engine.Tick; 103 110 PaintBox1.Repaint; 104 Engine.Tick; 111 end; 112 113 procedure TFormMain.EraseBackground(DC: HDC); 114 begin 115 // Do nothing, all background space covered by controls 105 116 end; 106 117
Note:
See TracChangeset
for help on using the changeset viewer.