I am unable to output a multi line message.
First of all a single line messageworks:
Code: Select all
var ed = Application.DocumentManager.MdiActiveDocument.Editor;
ed.WriteMessage("Test");
Code: Select all
var ed = Application.DocumentManager.MdiActiveDocument.Editor;
ed.WriteMessage("Test");
ed.WriteMessage("Test");
Code: Select all
var ed = Application.DocumentManager.MdiActiveDocument.Editor;
ed.WriteMessage("Test" + Environment.NewLine);
ed.WriteMessage("Test" + Environment.NewLine);
Is it possible and how to output multi-line message?
And another related question. The plugin makes some extensive calculations and I would like to write messages as the calculations run. What I have found is that messages are displayed only when the plugin command finished processing and not when the WriteMessage call is made. Is there a way to refresh the UI to show the messages beforehand? I have tried System.Windows.Forms.Application.DoEvents(); and also ed.UpdateScreen(); without success.
Thank you kindly
Geza