[Lazarus] WriteLn back to the GUI

ListMember listmember at letterboxes.org
Thu Oct 24 20:14:04 CEST 2013

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.


> 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.

More information about the Lazarus mailing list