Control log window's visibility

Mar 12, 2014 at 3:01 PM

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.

Mar 12, 2014 at 7: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.

Mar 12, 2014 at 9:05 PM
It works, thanks.