Ignore:
Timestamp:
Oct 19, 2010, 7:19:53 AM (14 years ago)
Author:
george
Message:
  • Modified: Error messsage window reworked to use TListView instead of ListBox.
  • Fixed: Focusing caret to position of error message source in code.
  • Fixed: Loading other units during parsing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/UProject.pas

    r66 r69  
    66
    77uses
    8   Classes, SysUtils, Contnrs, Dialogs, DOM, XMLWrite, XMLRead;
     8  Classes, SysUtils, Contnrs, Dialogs, DOM, XMLWrite, XMLRead, FileUtil;
    99
    1010type
     
    106106    else NamePart := FileName;
    107107  I := 0;
    108   while (I < Items.Count) and (TProjectNode(Items[I]).Name <> NamePart) do Inc(I);
     108  while (I < Items.Count) and (ExtractFileNameOnly(TProjectNode(Items[I]).Name) <> NamePart) do Inc(I);
    109109  if I < Items.Count then begin
    110     if TProjectNode(Items[I]) is TProjectFile then Result := TProjectFile(Items[I])
     110    if TProjectNode(Items[I]) is TProjectFile then
     111      Result := TProjectFile(Items[I])
    111112    else begin
    112113      Delete(FileName, 1, Length(FileName) + 1);
Note: See TracChangeset for help on using the changeset viewer.