source: trunk/Forms/FormOutput.pas

Last change on this file was 145, checked in by chronos, 11 months ago
  • Modified: Remove U prefix from unit names.
  • Modified: Updated Common package.
File size: 954 bytes
Line 
1unit FormOutput;
2
3interface
4
5uses
6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
7
8type
9
10 { TFormOutput }
11
12 TFormOutput = class(TForm)
13 Label2: TLabel;
14 MemoOutput: TMemo;
15 procedure FormCreate(Sender: TObject);
16 public
17 procedure Reload;
18 end;
19
20
21implementation
22
23{$R *.lfm}
24
25uses
26 Core, TargetInterpretter;
27
28{ TFormOutput }
29
30procedure TFormOutput.FormCreate(Sender: TObject);
31begin
32 Core.Core.Translator.TranslateComponentRecursive(Self);
33 Core.Core.ThemeManager.UseTheme(Self);
34end;
35
36procedure TFormOutput.Reload;
37begin
38 if Core.Core.CurrentTarget is TTargetInterpretter then
39 with TTargetInterpretter(Core.Core.CurrentTarget) do begin
40 if OutputChanged then begin
41 OutputChanged := False;
42 {$IFDEF UNIX}
43 MemoOutput.Lines.Text := StringReplace(Output, #10#13, LineEnding, [rfReplaceAll])
44 {$ELSE}
45 MemoOutput.Lines.Text := Output;
46 {$ENDIF}
47 end;
48 end;
49end;
50
51end.
52
Note: See TracBrowser for help on using the repository browser.