Issues with TextEditor


#1

I’m using a TextEditor as a logging output window. Not really what a TextEditor is meant for, but there is no better control. The problem is the control doesn’t have focus so the timer never starts a new transaction. insertTextAtCursor() adds to the current transaction until the process runs out of memory and crashes.

Really, it would be best if you could just disabled undo, as I don’t want the user to be able to undo anyway.


#2

Interesting point - I didn’t really design it to cope with being heavily used when not focused. Ok, I’ll figure out a way to make that safer, thanks!