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 | |
---|
1 | unit FormOutput;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
|
---|
7 |
|
---|
8 | type
|
---|
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 |
|
---|
21 | implementation
|
---|
22 |
|
---|
23 | {$R *.lfm}
|
---|
24 |
|
---|
25 | uses
|
---|
26 | Core, TargetInterpretter;
|
---|
27 |
|
---|
28 | { TFormOutput }
|
---|
29 |
|
---|
30 | procedure TFormOutput.FormCreate(Sender: TObject);
|
---|
31 | begin
|
---|
32 | Core.Core.Translator.TranslateComponentRecursive(Self);
|
---|
33 | Core.Core.ThemeManager.UseTheme(Self);
|
---|
34 | end;
|
---|
35 |
|
---|
36 | procedure TFormOutput.Reload;
|
---|
37 | begin
|
---|
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;
|
---|
49 | end;
|
---|
50 |
|
---|
51 | end.
|
---|
52 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.