Ignore:
Timestamp:
Aug 10, 2010, 10:14:57 AM (14 years ago)
Author:
george
Message:

Project renamed to Transpascal.
Added support for generatin cycle For-to-do.
Added support for parsing and generating structured types as record and array.
Emit procedure in TProducerPascal and TProducerC reworked.

File:
1 edited

Legend:

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

    r52 r53  
    1818
    1919  TMainForm = class(TForm)
    20     Button1: TButton;
     20    ButtonCompile: TButton;
    2121    ComboBox1: TComboBox;
    2222    ListBox1: TListBox;
     
    2727    procedure FormShow(Sender: TObject);
    2828    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    29     procedure Button1Click(Sender: TObject);
     29    procedure ButtonCompileClick(Sender: TObject);
    3030    procedure FormCreate(Sender: TObject);
    3131    procedure FormDestroy(Sender: TObject);
     
    4848{ TMainForm }
    4949
    50 procedure TMainForm.Button1Click(Sender: TObject);
     50procedure TMainForm.ButtonCompileClick(Sender: TObject);
    5151var
    5252  I: Integer;
     
    6464    ProducerControl.Parent := Panel1;
    6565    ProducerControl.Align := alClient;
     66    ProducerControl.Font.Name := 'Courier New';
     67    TMemo(ProducerControl).ScrollBars := ssAutoBoth;
    6668    with TProducerPascal(Compiler.Producer) do
    6769      TMemo(ProducerControl).Lines.Assign(TextSource);
     
    7577    ProducerControl.Parent := Panel1;
    7678    ProducerControl.Align := alClient;
     79    ProducerControl.Font.Name := 'Courier New';
     80    TMemo(ProducerControl).ScrollBars := ssAutoBoth;
    7781    with TProducerC(Compiler.Producer) do
    7882      TMemo(ProducerControl).Lines.Assign(TextSource);
     
    8690    ProducerControl.Parent := Panel1;
    8791    ProducerControl.Align := alClient;
     92    ProducerControl.Font.Name := 'Courier New';
     93    TMemo(ProducerControl).ScrollBars := ssAutoBoth;
    8894    with TProducerAsm8051(Compiler.Producer) do
    8995    for I := 0 to AssemblyCode.Count - 1 do
     
    143149  WindowState := wsMaximized;
    144150  SynEdit1.Lines.LoadFromFile(ExampleFileName);
    145   Button1Click(Self);
     151  ButtonCompileClick(Self);
    146152end;
    147153
    148154procedure TMainForm.ComboBox1Change(Sender: TObject);
    149155begin
    150   Button1Click(Self);
     156  ButtonCompileClick(Self);
    151157end;
    152158
Note: See TracChangeset for help on using the changeset viewer.