Hello,
I have my own Palette Set.
On this Palette Set I have a palette withe a tree.
On the right click of the node, I call a command (it's one of our own ObjectARX commands, but the problem is the same with a build in command).
The command wants the user to select a point, with a few options. If I first select a point (left click) and then click right, everything works fine.
But If I click with the right button, before I select anything, the menu is not shown.
The code for calling the command is really easy:
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("_ARC\n",true,false,false);
As said before... I don't call the _ARC command... but for the arc Command the right click menu is not shown also...
What can I do, to get the normal behavior of the right click?
Hi Matthias,
Can you please try setting the focus before invoking the command ?
http://adndevblog.typepad.com/autocad/2013/03/use-of-windowfocus-in-autocad-2014.html
Regards,
Hi Balaji,
Thanks for your reply.
After setting the focus didn't help, I tried to do a small sample project to show the error to you. But in the sample project everything works fine.
So it seems to be no general problem, but a problem with my palette.
Needless to say, that it is no simple palette, but a quite complex one (depending on a lot of other stuff).
So I will try, when I find some time next week, to do a little bit testing to localize what cuases the error. If I have more information, I will inform you.
Thanks so far
Matthias