[Lazarus] WriteLn back to the GUI

Sven Barth pascaldragon at googlemail.com
Thu Oct 24 20:49:11 CEST 2013

On 24.10.2013 20:14, ListMember wrote:
> On 2013-10-24 10:46, Sven Barth wrote:
>> Did you read (and understand) what I wrote?
> I did, of course, read; but, apparently, I didn't understand it the way
> you meant.
> Sorry.
>> You need to "store the old value of "Output" and restore" it
>> afterwards. This means for your button click event:
> Got it now. Thank you.
>> And with that in mind I can also present you with another possible
>> solution (though the text mode driver will do it's job correctly): the
>> compiler unit "comphook" contains a few callbacks which are used by
>> the textmode IDE to capture the compiler's output and a few further
>> things.
> Actually, it was the def_comment() function in comphook.pas that started
> all this.
>> You can take a look at $fpc\ide\fpcompil.pas to see what you
>> should/could do inside those callbacks (they are assigned at around
>> line 943).
> Thank you. This is a lot more like what I need.

And if you'd now be so kind to explain please why you compile the 
compiler into your application? (I'm just curious ^^)


More information about the Lazarus mailing list