Changeset 64 for branches/Transpascal/Forms/UMainForm.pas
- Timestamp:
- Oct 15, 2010, 2:13:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Forms/UMainForm.pas
r63 r64 49 49 procedure FormCreate(Sender: TObject); 50 50 procedure FormDestroy(Sender: TObject); 51 procedure ListBoxMessagesClick(Sender: TObject);52 procedure Panel2Click(Sender: TObject);53 procedure Splitter2CanResize(Sender: TObject; var NewSize: Integer;54 var Accept: Boolean);55 51 private 56 52 procedure LoadErrorMessages; … … 108 104 end; 109 105 110 procedure TMainForm.ListBoxMessagesClick(Sender: TObject);111 var112 ProjectFile: TProjectFile;113 begin114 with MessagesForm, CodeForm do115 if ListBoxMessages.ItemIndex <> -1 then116 with TErrorMessage(Compiler.ErrorMessages[ListBoxMessages.ItemIndex]) do begin117 ProjectFile := Project.SearchFile(fileName);118 if Assigned(ProjectFile) then119 SynEditSource.Lines.Assign(ProjectFile.Source);120 SynEditSource.CaretXY := Position;121 SynEditSource.SetFocus;122 end;123 end;124 125 procedure TMainForm.Panel2Click(Sender: TObject);126 begin127 128 end;129 130 procedure TMainForm.Splitter2CanResize(Sender: TObject; var NewSize: Integer;131 var Accept: Boolean);132 begin133 134 end;135 136 106 procedure TMainForm.LoadErrorMessages; 137 107 var … … 263 233 NewProjectFile := TProjectFile.Create; 264 234 NewProjectFile.Parent := Project; 265 NewProjectFile.Name := ' Console.pas';235 NewProjectFile.Name := 'MemoryManager.pas'; 266 236 Project.Items.Add(NewProjectFile); 267 237
Note:
See TracChangeset
for help on using the changeset viewer.