Changeset 53 for branches/DelphiToC/Forms/UMainForm.pas
- Timestamp:
- Aug 10, 2010, 10:14:57 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DelphiToC/Forms/UMainForm.pas
r52 r53 18 18 19 19 TMainForm = class(TForm) 20 Button 1: TButton;20 ButtonCompile: TButton; 21 21 ComboBox1: TComboBox; 22 22 ListBox1: TListBox; … … 27 27 procedure FormShow(Sender: TObject); 28 28 procedure FormClose(Sender: TObject; var Action: TCloseAction); 29 procedure Button 1Click(Sender: TObject);29 procedure ButtonCompileClick(Sender: TObject); 30 30 procedure FormCreate(Sender: TObject); 31 31 procedure FormDestroy(Sender: TObject); … … 48 48 { TMainForm } 49 49 50 procedure TMainForm.Button 1Click(Sender: TObject);50 procedure TMainForm.ButtonCompileClick(Sender: TObject); 51 51 var 52 52 I: Integer; … … 64 64 ProducerControl.Parent := Panel1; 65 65 ProducerControl.Align := alClient; 66 ProducerControl.Font.Name := 'Courier New'; 67 TMemo(ProducerControl).ScrollBars := ssAutoBoth; 66 68 with TProducerPascal(Compiler.Producer) do 67 69 TMemo(ProducerControl).Lines.Assign(TextSource); … … 75 77 ProducerControl.Parent := Panel1; 76 78 ProducerControl.Align := alClient; 79 ProducerControl.Font.Name := 'Courier New'; 80 TMemo(ProducerControl).ScrollBars := ssAutoBoth; 77 81 with TProducerC(Compiler.Producer) do 78 82 TMemo(ProducerControl).Lines.Assign(TextSource); … … 86 90 ProducerControl.Parent := Panel1; 87 91 ProducerControl.Align := alClient; 92 ProducerControl.Font.Name := 'Courier New'; 93 TMemo(ProducerControl).ScrollBars := ssAutoBoth; 88 94 with TProducerAsm8051(Compiler.Producer) do 89 95 for I := 0 to AssemblyCode.Count - 1 do … … 143 149 WindowState := wsMaximized; 144 150 SynEdit1.Lines.LoadFromFile(ExampleFileName); 145 Button 1Click(Self);151 ButtonCompileClick(Self); 146 152 end; 147 153 148 154 procedure TMainForm.ComboBox1Change(Sender: TObject); 149 155 begin 150 Button 1Click(Self);156 ButtonCompileClick(Self); 151 157 end; 152 158
Note:
See TracChangeset
for help on using the changeset viewer.