Hi,
I create a project as a MENU, and i need create an alert message when some execute command it’s ok.
How i create this message? With a MessageBox option?
Thanks.
Hi,
I create a project as a MENU, and i need create an alert message when some execute command it’s ok.
How i create this message? With a MessageBox option?
Thanks.
You mean something like this?
using Eto.Forms;
using Rhino;
using Rhino.Commands;
namespace MyPlugIn
{
public class TestMessage : Rhino.Commands.Command
{
public override string EnglishName => "TestMessage";
protected override Result RunCommand(RhinoDoc doc, RunMode mode)
{
var message = "Hello Rhino!";
if (mode == RunMode.Interactive)
MessageBox.Show(message, EnglishName, MessageBoxButtons.OK, MessageBoxType.Information);
else
RhinoApp.WriteLine(message);
return Result.Success;
}
}
}
– Dale
Thanks Dale…