Modeless dialog/Insertion point
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have modeless dialog. On dialog I have button on which user clicks, when he wants to pick insertion point. Problem is when I exit dialog the command line is still in command GetPoint (doesn't show usual Command:). How can I solve this problem? My code at the moment is:
// this.Visible = false;
AppServ.Document adoc = AppServ.Application.DocumentManager.MdiActiveDocument;
AppServ.DocumentLock dl = adoc.LockDocument();
Editor ed = adoc.Editor;
using (ed.StartUserInteraction(this))
{
PromptPointOptions ppo = new PromptPointOptions("Pick Point:");
PromptPointResult respt = ed.GetPoint(ppo);
if (respt.Status == PromptStatus.OK)
{
//Do something
}
dwg.Dispose();
}
dl.Dispose();
// this.Visible = !this.Visible;