Changeset 53 for branches/DelphiToC/Forms
- Timestamp:
- Aug 10, 2010, 10:14:57 AM (15 years ago)
- Location:
- branches/DelphiToC/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DelphiToC/Forms/UMainForm.lfm
r52 r53 1 1 object MainForm: TMainForm 2 Left = 1 762 Left = 141 3 3 Height = 498 4 Top = 774 Top = 105 5 5 Width = 881 6 Caption = ' Pascal Compiler AVR'6 Caption = 'Transpascal ' 7 7 ClientHeight = 498 8 8 ClientWidth = 881 … … 15 15 Position = poDesktopCenter 16 16 LCLVersion = '0.9.29' 17 object Button 1: TButton18 Left = 80 017 object ButtonCompile: TButton 18 Left = 801 19 19 Height = 22 20 20 Top = 401 … … 22 22 Anchors = [akRight, akBottom] 23 23 Caption = 'Kompilovat' 24 OnClick = Button1Click 24 Font.Height = -11 25 Font.Name = 'Tahoma' 26 OnClick = ButtonCompileClick 27 ParentFont = False 25 28 TabOrder = 0 26 29 end -
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.