Ignore:
Timestamp:
Oct 15, 2010, 10:04:55 AM (14 years ago)
Author:
george
Message:
  • Modified: Compiled code syntax highlighting.
File:
1 edited

Legend:

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

    r62 r63  
    2727    ActionList1: TActionList;
    2828    Button1: TButton;
    29     ComboBox1: TComboBox;
     29    ComboBoxTargetSelection: TComboBox;
    3030    CoolDockClient1: TCoolDockClient;
    3131    CoolDockMaster1: TCoolDockMaster;
     
    4343    ToolBar1: TToolBar;
    4444    procedure ComboBox1Change(Sender: TObject);
     45    procedure ComboBoxTargetSelectionChange(Sender: TObject);
    4546    procedure FormShow(Sender: TObject);
    4647    procedure FormClose(Sender: TObject; var Action: TCloseAction);
     
    7980  I: Integer;
    8081begin
    81   if ComboBox1.ItemIndex = 0 then begin
     82  if ComboBoxTargetSelection.ItemIndex = 0 then begin
    8283    Compiler.Producer.Free;
    8384    Compiler.Producer := TProducerPascal.Create;
    8485  end else
    85   if ComboBox1.ItemIndex = 1 then begin
     86  if ComboBoxTargetSelection.ItemIndex = 1 then begin
    8687    Compiler.Producer.Free;
    8788    Compiler.Producer := TProducerC.Create;
    8889  end else
    89   if ComboBox1.ItemIndex = 2 then begin
     90  if ComboBoxTargetSelection.ItemIndex = 2 then begin
    9091    Compiler.Producer.Free;
    9192    Compiler.Producer := TProducerAsm8051.Create;
    9293  end else
    93   if ComboBox1.ItemIndex = 3 then begin
     94  if ComboBoxTargetSelection.ItemIndex = 3 then begin
    9495    Compiler.Producer.Free;
    9596    Compiler.Producer := TProducerTreeView.Create;
     
    103104  end;
    104105
     106  ProjectManager.TreeViewProjectChange(Self, ProjectManager.TreeViewProject.Selected);
    105107  LoadErrorMessages;
    106108end;
     
    276278end;
    277279
     280procedure TMainForm.ComboBoxTargetSelectionChange(Sender: TObject);
     281begin
     282  ButtonCompileClick(Self);
     283end;
     284
    278285end.
Note: See TracChangeset for help on using the changeset viewer.