Hi!
I am trying to add some information (colored strings) at the end of each line in the output window, that is, after the 80 character mark. This information might need to be updated for the newest line, so I can't just replace incoming lines (which might also lead to problems with triggers and line breaks?). And there doesn't seem to be a way to replace text in the output window after the fact.
My idea was to create a miniwindow on the right side of the output window and writing my info there, aligned with the lines from the output. The problem is, that I cannot find a callback when the scroll state of the output window changes (I'd have to update my miniwindow accordingly).
I currently see only two possibilities:
Is there anything I might have overlooked?
Thanks in advance :)
I am trying to add some information (colored strings) at the end of each line in the output window, that is, after the 80 character mark. This information might need to be updated for the newest line, so I can't just replace incoming lines (which might also lead to problems with triggers and line breaks?). And there doesn't seem to be a way to replace text in the output window after the fact.
My idea was to create a miniwindow on the right side of the output window and writing my info there, aligned with the lines from the output. The problem is, that I cannot find a callback when the scroll state of the output window changes (I'd have to update my miniwindow accordingly).
I currently see only two possibilities:
- checking the scroll state every 0.1 seconds with GetInfo() and updating the miniwindow -> "slow" updates, doesn't look nice
- creating a miniwindow on top of the output and adding a scroll handler, replacing the default scroll behaviour -> no longer possible to select text in the output, since the miniwindow takes up all the mouse events
Is there anything I might have overlooked?
Thanks in advance :)
