Changeset 64 for branches/Transpascal/Forms/UMessagesForm.pas
- Timestamp:
- Oct 15, 2010, 2:13:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Forms/UMessagesForm.pas
r61 r64 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 UCoolDocking ;9 UCoolDocking, UProject, UCompiler; 10 10 11 11 type … … 16 16 CoolDockClient1: TCoolDockClient; 17 17 ListBoxMessages: TListBox; 18 procedure ListBoxMessagesSelectionChange(Sender: TObject; User: boolean); 18 19 private 19 20 { private declarations } … … 29 30 {$R *.lfm} 30 31 32 uses 33 UMainForm, UCodeForm; 34 35 { TMessagesForm } 36 37 procedure TMessagesForm.ListBoxMessagesSelectionChange(Sender: TObject; 38 User: boolean); 39 var 40 ProjectFile: TProjectFile; 41 begin 42 with MainForm, CodeForm do 43 if ListBoxMessages.ItemIndex <> -1 then 44 with TErrorMessage(Compiler.ErrorMessages[ListBoxMessages.ItemIndex]) do begin 45 ProjectFile := Project.SearchFile(fileName); 46 if Assigned(ProjectFile) then 47 SynEditSource.Lines.Assign(ProjectFile.Source); 48 SynEditSource.CaretXY := Position; 49 SynEditSource.SetFocus; 50 end; 51 end; 52 31 53 end. 32 54
Note:
See TracChangeset
for help on using the changeset viewer.