Ignore:
Timestamp:
Oct 15, 2010, 2:13:42 PM (14 years ago)
Author:
george
Message:
  • Fixed: Focus message position in code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/Forms/UMainForm.pas

    r63 r64  
    4949    procedure FormCreate(Sender: TObject);
    5050    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);
    5551  private
    5652    procedure LoadErrorMessages;
     
    108104end;
    109105
    110 procedure TMainForm.ListBoxMessagesClick(Sender: TObject);
    111 var
    112   ProjectFile: TProjectFile;
    113 begin
    114   with MessagesForm, CodeForm do
    115   if ListBoxMessages.ItemIndex <> -1 then
    116   with TErrorMessage(Compiler.ErrorMessages[ListBoxMessages.ItemIndex]) do begin
    117     ProjectFile := Project.SearchFile(fileName);
    118     if Assigned(ProjectFile) then
    119       SynEditSource.Lines.Assign(ProjectFile.Source);
    120     SynEditSource.CaretXY := Position;
    121     SynEditSource.SetFocus;
    122   end;
    123 end;
    124 
    125 procedure TMainForm.Panel2Click(Sender: TObject);
    126 begin
    127 
    128 end;
    129 
    130 procedure TMainForm.Splitter2CanResize(Sender: TObject; var NewSize: Integer;
    131   var Accept: Boolean);
    132 begin
    133 
    134 end;
    135 
    136106procedure TMainForm.LoadErrorMessages;
    137107var
     
    263233  NewProjectFile := TProjectFile.Create;
    264234  NewProjectFile.Parent := Project;
    265   NewProjectFile.Name := 'Console.pas';
     235  NewProjectFile.Name := 'MemoryManager.pas';
    266236  Project.Items.Add(NewProjectFile);
    267237
Note: See TracChangeset for help on using the changeset viewer.