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/Forms/UMainForm.pas

    r67 r69  
    5959    ReopenLastOpenedFile: Boolean;
    6060    procedure OpenRecentClick(Sender: TObject);
    61     procedure LoadErrorMessages;
    6261    procedure DockInit;
    6362    procedure LoadFromRegistry;
     
    112111
    113112  ProjectManager.TreeViewProjectChange(Self, ProjectManager.TreeViewProject.Selected);
    114   LoadErrorMessages;
    115 end;
    116 
    117 procedure TMainForm.LoadErrorMessages;
    118 var
    119   I: Integer;
    120 begin
    121   with MessagesForm do begin
    122     ListBoxMessages.Clear;
    123     for I := 0 to Compiler.ErrorMessages.Count - 1 do
    124     with TErrorMessage(Compiler.ErrorMessages[I]) do
    125       ListBoxMessages.Items.Add(FileName + '(' + IntToStr(Position.X) +
    126         ',' + IntToStr(Position.Y) + ') ' + Text);
    127   end;
     113  MessagesForm.Reload;
    128114end;
    129115
Note: See TracChangeset for help on using the changeset viewer.