Changeset 63 for branches/Transpascal/Forms/UMainForm.pas
- Timestamp:
- Oct 15, 2010, 10:04:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/Forms/UMainForm.pas
r62 r63 27 27 ActionList1: TActionList; 28 28 Button1: TButton; 29 ComboBox 1: TComboBox;29 ComboBoxTargetSelection: TComboBox; 30 30 CoolDockClient1: TCoolDockClient; 31 31 CoolDockMaster1: TCoolDockMaster; … … 43 43 ToolBar1: TToolBar; 44 44 procedure ComboBox1Change(Sender: TObject); 45 procedure ComboBoxTargetSelectionChange(Sender: TObject); 45 46 procedure FormShow(Sender: TObject); 46 47 procedure FormClose(Sender: TObject; var Action: TCloseAction); … … 79 80 I: Integer; 80 81 begin 81 if ComboBox 1.ItemIndex = 0 then begin82 if ComboBoxTargetSelection.ItemIndex = 0 then begin 82 83 Compiler.Producer.Free; 83 84 Compiler.Producer := TProducerPascal.Create; 84 85 end else 85 if ComboBox 1.ItemIndex = 1 then begin86 if ComboBoxTargetSelection.ItemIndex = 1 then begin 86 87 Compiler.Producer.Free; 87 88 Compiler.Producer := TProducerC.Create; 88 89 end else 89 if ComboBox 1.ItemIndex = 2 then begin90 if ComboBoxTargetSelection.ItemIndex = 2 then begin 90 91 Compiler.Producer.Free; 91 92 Compiler.Producer := TProducerAsm8051.Create; 92 93 end else 93 if ComboBox 1.ItemIndex = 3 then begin94 if ComboBoxTargetSelection.ItemIndex = 3 then begin 94 95 Compiler.Producer.Free; 95 96 Compiler.Producer := TProducerTreeView.Create; … … 103 104 end; 104 105 106 ProjectManager.TreeViewProjectChange(Self, ProjectManager.TreeViewProject.Selected); 105 107 LoadErrorMessages; 106 108 end; … … 276 278 end; 277 279 280 procedure TMainForm.ComboBoxTargetSelectionChange(Sender: TObject); 281 begin 282 ButtonCompileClick(Self); 283 end; 284 278 285 end.
Note:
See TracChangeset
for help on using the changeset viewer.