Changeset 10 for branches/ByteArray/Forms
- Timestamp:
- Aug 7, 2024, 12:12:42 AM (6 months ago)
- Location:
- branches/ByteArray/Forms
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ByteArray/Forms/FormConsole.lfm
r5 r10 1 1 object FormConsole: TFormConsole 2 Left = 7 802 Left = 779 3 3 Height = 689 4 Top = 3 994 Top = 375 5 5 Width = 1002 6 6 Caption = 'Console' … … 8 8 ClientWidth = 1002 9 9 DesignTimePPI = 144 10 LCLVersion = ' 2.2.6.0'10 LCLVersion = '3.4.0.0' 11 11 object Memo1: TMemo 12 12 Left = 0 … … 20 20 TabOrder = 0 21 21 end 22 object Timer1: TTimer 23 Interval = 100 24 OnTimer = Timer1Timer 25 Left = 314 26 Top = 160 27 end 22 28 end -
branches/ByteArray/Forms/FormConsole.pas
r5 r10 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, Device; 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls, 7 Device, Serial; 7 8 8 9 type … … 12 13 TFormConsole = class(TFormDevice) 13 14 Memo1: TMemo; 15 Timer1: TTimer; 16 procedure Timer1Timer(Sender: TObject); 17 private 18 FSerial: TSerial; 19 procedure SetSerial(AValue: TSerial); 14 20 public 15 pro cedure ConsoleWrite(Data: Byte);21 property Serial: TSerial read FSerial write SetSerial; 16 22 end; 17 23 … … 21 27 {$R *.lfm} 22 28 23 procedure TFormConsole. ConsoleWrite(Data: Byte);29 procedure TFormConsole.Timer1Timer(Sender: TObject); 24 30 begin 25 Memo1.Lines.Text := Memo1.Lines.Text + Chr(Data); 31 Memo1.Lines.Text := Memo1.Lines.Text + FSerial.ReadOutputBuffer; 32 end; 33 34 procedure TFormConsole.SetSerial(AValue: TSerial); 35 begin 36 if FSerial = AValue then Exit; 37 if Assigned(FSerial) then begin 38 FSerial.OnOutput := nil; 39 end; 40 FSerial := AValue; 41 if Assigned(FSerial) then begin 42 Memo1.Lines.Text := FSerial.ReadOutputBuffer; 43 end; 26 44 end; 27 45 -
branches/ByteArray/Forms/FormMemory.lfm
r5 r10 1 1 object FormMemory: TFormMemory 2 Left = 70 62 Left = 705 3 3 Height = 866 4 Top = 3114 Top = 287 5 5 Width = 1150 6 6 Caption = 'Memory' … … 8 8 ClientWidth = 1150 9 9 DesignTimePPI = 144 10 Menu = MainMenu1 10 11 OnShow = FormShow 11 LCLVersion = ' 2.2.6.0'12 LCLVersion = '3.4.0.0' 12 13 object ListViewMemory: TListView 13 14 Left = 8 … … 45 46 Top = 205 46 47 end 48 object MainMenu1: TMainMenu 49 Left = 246 50 Top = 252 51 object MenuItem1: TMenuItem 52 Caption = 'Tools' 53 object MenuItemClear: TMenuItem 54 Caption = 'Clear' 55 OnClick = MenuItemClearClick 56 end 57 end 58 end 47 59 end -
branches/ByteArray/Forms/FormMemory.lrj
r5 r10 3 3 {"hash":128683235,"name":"tformmemory.listviewmemory.columns[0].caption","sourcebytes":[65,100,100,114,101,115,115],"value":"Address"}, 4 4 {"hash":305313,"name":"tformmemory.listviewmemory.columns[1].caption","sourcebytes":[68,97,116,97],"value":"Data"}, 5 {"hash":4618201,"name":"tformmemory.listviewmemory.columns[2].caption","sourcebytes":[65,83,67,73,73],"value":"ASCII"} 5 {"hash":4618201,"name":"tformmemory.listviewmemory.columns[2].caption","sourcebytes":[65,83,67,73,73],"value":"ASCII"}, 6 {"hash":5989939,"name":"tformmemory.menuitem1.caption","sourcebytes":[84,111,111,108,115],"value":"Tools"}, 7 {"hash":4860802,"name":"tformmemory.menuitemclear.caption","sourcebytes":[67,108,101,97,114],"value":"Clear"} 6 8 ]} -
branches/ByteArray/Forms/FormMemory.pas
r5 r10 5 5 uses 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, ExtCtrls, 7 Me mory, Common.FormEx;7 Menus, Memory, Common.FormEx; 8 8 9 9 type … … 13 13 TFormMemory = class(TFormEx) 14 14 ListViewMemory: TListView; 15 MainMenu1: TMainMenu; 16 MenuItem1: TMenuItem; 17 MenuItemClear: TMenuItem; 15 18 Timer1: TTimer; 16 19 procedure FormShow(Sender: TObject); 17 20 procedure ListViewMemoryData(Sender: TObject; Item: TListItem); 21 procedure MenuItemClearClick(Sender: TObject); 18 22 procedure Timer1Timer(Sender: TObject); 19 23 public … … 58 62 end; 59 63 64 procedure TFormMemory.MenuItemClearClick(Sender: TObject); 65 begin 66 Memory.FillZero; 67 Reload; 68 end; 69 60 70 procedure TFormMemory.FormShow(Sender: TObject); 61 71 begin -
branches/ByteArray/Forms/FormScreen.lfm
r5 r10 5 5 Width = 931 6 6 Caption = 'Screen' 7 ClientHeight = 6 427 ClientHeight = 676 8 8 ClientWidth = 931 9 9 DesignTimePPI = 144 … … 11 11 OnClose = FormClose 12 12 OnShow = FormShow 13 LCLVersion = ' 2.2.6.0'13 LCLVersion = '3.4.0.0' 14 14 object Image1: TImage 15 15 Left = 0 16 Height = 6 4216 Height = 676 17 17 Top = 0 18 18 Width = 931 … … 37 37 end 38 38 end 39 object MenuItem2: TMenuItem 40 Caption = 'Tools' 41 object MenuItem10: TMenuItem 42 Action = Core.ASettings 43 end 44 object Separator2: TMenuItem 45 Caption = '-' 46 end 47 object MenuItem3: TMenuItem 48 Action = Core.ASourceEditor 49 end 50 object MenuItem5: TMenuItem 51 Action = Core.ADebugger 52 end 53 object MenuItem8: TMenuItem 54 Action = Core.ADisassembler 55 end 56 end 57 object MenuItem13: TMenuItem 58 Caption = 'Execution' 59 object MenuItem14: TMenuItem 60 Action = Core.APowerOn 61 end 62 object MenuItem15: TMenuItem 63 Action = Core.APowerOff 64 end 65 object MenuItem16: TMenuItem 66 Action = Core.ARestart 67 end 68 end 39 69 object MenuItem1: TMenuItem 40 70 Caption = 'View' … … 55 85 end 56 86 end 57 object MenuItem2: TMenuItem58 Caption = 'Tools'59 object MenuItem10: TMenuItem60 Action = Core.ASettings61 end62 object Separator2: TMenuItem63 Caption = '-'64 end65 object MenuItem3: TMenuItem66 Action = Core.ASourceEditor67 end68 object MenuItem5: TMenuItem69 Action = Core.ADebugger70 end71 object MenuItem8: TMenuItem72 Action = Core.ADisassembler73 end74 end75 87 object MenuItem11: TMenuItem 76 88 Caption = 'Help' -
branches/ByteArray/Forms/FormScreen.lrj
r5 r10 2 2 {"hash":94014398,"name":"tformscreen.caption","sourcebytes":[83,99,114,101,101,110],"value":"Screen"}, 3 3 {"hash":315429,"name":"tformscreen.menuitem4.caption","sourcebytes":[70,105,108,101],"value":"File"}, 4 {"hash":5989939,"name":"tformscreen.menuitem2.caption","sourcebytes":[84,111,111,108,115],"value":"Tools"}, 5 {"hash":195880126,"name":"tformscreen.menuitem13.caption","sourcebytes":[69,120,101,99,117,116,105,111,110],"value":"Execution"}, 4 6 {"hash":380871,"name":"tformscreen.menuitem1.caption","sourcebytes":[86,105,101,119],"value":"View"}, 5 {"hash":5989939,"name":"tformscreen.menuitem2.caption","sourcebytes":[84,111,111,108,115],"value":"Tools"},6 7 {"hash":322608,"name":"tformscreen.menuitem11.caption","sourcebytes":[72,101,108,112],"value":"Help"} 7 8 ]} -
branches/ByteArray/Forms/FormScreen.pas
r5 r10 18 18 MenuItem11: TMenuItem; 19 19 MenuItem12: TMenuItem; 20 MenuItem13: TMenuItem; 21 MenuItem14: TMenuItem; 22 MenuItem15: TMenuItem; 23 MenuItem16: TMenuItem; 20 24 MenuItem2: TMenuItem; 21 25 MenuItem3: TMenuItem;
Note:
See TracChangeset
for help on using the changeset viewer.