Control log window's visibility

Mar 12, 2014 at 4:01 PM
Hi,

It seems that if I call LogDisplay.WriteLine, it automatically displays the window.
Is it possible to control the visibility, so that I can keep it hidden even when I call WriteLine?

My use case is for users to let manually click on a menu button to show/hide window.
When it's hidden, it kind of collects all the log messages I am writing, very much like a file.

Thanks,
Sumeet
Coordinator
Mar 12, 2014 at 8:59 PM
Hi Sumeet,

You can call LogDisplay.RecordLine(string format, params object[] args) instead of WriteLine, to add a line but not force the display to be show.

You can then control whether it is displayed or not, by calling LogDisplay.Show() or LogDisplay.Hide().

Let me know if any of this doesn't work.

Regards,
Govert
Mar 12, 2014 at 10:05 PM
It works, thanks.