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. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
