.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Right Mouse Click doesn't open menu if I call command from PaletteSet

2 REPLIES 2
Reply
Message 1 of 3
Matti72
686 Views, 2 Replies

Right Mouse Click doesn't open menu if I call command from PaletteSet

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?

 

 

2 REPLIES 2
Message 2 of 3
Balaji_Ram
in reply to: Matti72

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,



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
Matti72
in reply to: Balaji_Ram

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 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost