Changeset 34 for branches/UltimatOS/Forms
- Timestamp:
- Jul 12, 2022, 11:51:47 PM (2 years ago)
- Location:
- branches/UltimatOS/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UltimatOS/Forms/UFormMain.lfm
r32 r34 1 1 object FormMain: TFormMain 2 2 Left = 227 3 Height = 7073 Height = 814 4 4 Top = 205 5 Width = 9985 Width = 1150 6 6 Caption = 'UltimatOS' 7 ClientHeight = 7078 ClientWidth = 9989 DesignTimePPI = 1 257 ClientHeight = 814 8 ClientWidth = 1150 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy 12 12 OnKeyUp = FormKeyUp 13 13 OnShow = FormShow 14 LCLVersion = '2.2. 0.4'14 LCLVersion = '2.2.2.0' 15 15 object PaintBox1: TPaintBox 16 Left = 817 Height = 48018 Top = 819 Width = 64016 Left = 9 17 Height = 553 18 Top = 9 19 Width = 737 20 20 OnMouseMove = PaintBox1MouseMove 21 21 OnPaint = PaintBox1Paint 22 22 end 23 23 object ButtonStart: TButton 24 Left = 825 Height = 3 326 Top = 49627 Width = 9824 Left = 9 25 Height = 38 26 Top = 571 27 Width = 113 28 28 Caption = 'Start' 29 29 OnClick = ButtonStartClick … … 31 31 end 32 32 object MemoCode: TMemo 33 Left = 65634 Height = 47735 Top = 936 Width = 3 2833 Left = 756 34 Height = 550 35 Top = 10 36 Width = 378 37 37 ScrollBars = ssAutoBoth 38 38 TabOrder = 1 39 39 end 40 40 object Label1: TLabel 41 Left = 66242 Height = 2 243 Top = 5 0044 Width = 6841 Left = 763 42 Height = 26 43 Top = 576 44 Width = 79 45 45 Caption = 'Instrukcí:' 46 ParentColor = False 46 47 end 47 48 object ButtonMemory: TButton 48 Left = 55049 Height = 3 350 Top = 49651 Width = 9849 Left = 634 50 Height = 38 51 Top = 571 52 Width = 113 52 53 Caption = 'Memory' 53 54 OnClick = ButtonMemoryClick … … 55 56 end 56 57 object ButtonStop: TButton 57 Left = 1 1258 Height = 3 359 Top = 49660 Width = 9858 Left = 129 59 Height = 38 60 Top = 571 61 Width = 113 61 62 Caption = 'Stop' 62 63 OnClick = ButtonStopClick … … 64 65 end 65 66 object ButtonRestart: TButton 66 Left = 2 1667 Height = 3 368 Top = 49669 Width = 9867 Left = 249 68 Height = 38 69 Top = 571 70 Width = 113 70 71 Caption = 'Restart' 71 72 OnClick = ButtonRestartClick … … 73 74 end 74 75 object ButtonCompile: TButton 75 Left = 876 Height = 3 377 Top = 53678 Width = 9876 Left = 9 77 Height = 38 78 Top = 617 79 Width = 113 79 80 Caption = 'Compile' 80 81 OnClick = ButtonCompileClick 81 82 TabOrder = 5 82 83 end 84 object Label2: TLabel 85 Left = 763 86 Height = 26 87 Top = 632 88 Width = 55 89 Caption = 'Label2' 90 ParentColor = False 91 end 83 92 object Timer1: TTimer 84 93 Interval = 20 85 94 OnTimer = Timer1Timer 86 Left = 190 87 Top = 542 95 Left = 219 96 Top = 624 97 end 98 object Timer2: TTimer 99 OnTimer = Timer2Timer 100 Left = 768 101 Top = 664 88 102 end 89 103 end -
branches/UltimatOS/Forms/UFormMain.pas
r32 r34 18 18 ButtonRestart: TButton; 19 19 Label1: TLabel; 20 Label2: TLabel; 20 21 MemoCode: TMemo; 21 22 PaintBox1: TPaintBox; 22 23 Timer1: TTimer; 24 Timer2: TTimer; 23 25 procedure ButtonCompileClick(Sender: TObject); 24 26 procedure ButtonMemoryClick(Sender: TObject); … … 34 36 procedure PaintBox1Paint(Sender: TObject); 35 37 procedure Timer1Timer(Sender: TObject); 38 procedure Timer2Timer(Sender: TObject); 36 39 private 40 LastTicks: Integer; 37 41 procedure InitProgram; 38 42 procedure UpdateInterface; … … 143 147 end; 144 148 149 procedure TFormMain.Timer2Timer(Sender: TObject); 150 begin 151 Label2.Caption := 'Ticks/s: ' + IntToStr(Machine.Cpu.ExecutedCount - LastTicks); 152 LastTicks := Machine.Cpu.ExecutedCount; 153 end; 154 145 155 procedure TFormMain.InitProgram; 146 156 begin
Note:
See TracChangeset
for help on using the changeset viewer.