Changeset 238 for branches/CpuSingleSize/Forms/FormMessages.pas
- Timestamp:
- Jul 15, 2023, 12:51:15 AM (16 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/CpuSingleSize/Forms/FormMessages.pas
r237 r238 1 unit UFormMessages;1 unit FormMessages; 2 2 3 3 interface … … 7 7 8 8 type 9 TSelectEvent = procedure (Position: TPoint) of object; 9 10 10 11 { TFormMessages } … … 15 16 procedure ListView1DblClick(Sender: TObject); 16 17 private 18 FOnSelect: TSelectEvent; 17 19 public 18 20 procedure Reload; 21 property OnSelect: TSelectEvent read FOnSelect write FOnSelect; 19 22 end; 20 21 var22 FormMessages: TFormMessages;23 23 24 24 … … 28 28 29 29 uses 30 UCore, UMessages, UFormAssembler;30 Core, Message, FormAssembler; 31 31 32 32 { TFormMessages } … … 34 34 procedure TFormMessages.ListView1Data(Sender: TObject; Item: TListItem); 35 35 begin 36 with Core. Assembler do37 if (Item.Index >= 0) and (Item.Index < Message s.Count) then38 with TMessage(Message s[Item.Index]) do begin36 with Core.Core.Assembler do 37 if (Item.Index >= 0) and (Item.Index < Message.Count) then 38 with TMessage(Message[Item.Index]) do begin 39 39 Item.Caption := IntToStr(Position.X) + ', ' + IntToStr(Position.Y); 40 Item.Data := Message s[Item.Index];40 Item.Data := Message[Item.Index]; 41 41 Item.SubItems.Add(Text); 42 42 end; … … 46 46 begin 47 47 if Assigned(ListView1.Selected) then begin 48 FormAssembler.SynEdit1.CaretXY := TMessage(ListView1.Selected.Data).Position; 49 FormAssembler.SynEdit1.SetFocus; 50 FormAssembler.Show; 48 if Assigned(FOnSelect) then 49 FOnSelect(TMessage(ListView1.Selected.Data).Position); 51 50 end; 52 51 end; … … 54 53 procedure TFormMessages.Reload; 55 54 begin 56 ListView1.Items.Count := Core. Assembler.Messages.Count;55 ListView1.Items.Count := Core.Core.Assembler.Message.Count; 57 56 ListView1.Refresh; 58 57 end; 59 58 60 61 59 end. 62 60
Note:
See TracChangeset
for help on using the changeset viewer.