Jump to content

Which custom object property do I need to set to enable context menu events?


Recommended Posts

Which custom object property do I need to set to enable context menu events? When I right click on my PIO in the drawing it should receive event 45 kObjOnContextMenuInit but this never happens. I assume there is an object property I need to set using SetObjPropVS() to enable this behaviour for my PIO, does anyone know what this is?

Link to comment

You are correct.  FYI, you can find information for all ObjProp constants in the SDK file MiniCadHookIntf.h.  Here is the section on context menus.

 

//---------------------------------------------------//---------------------//-------------------------------------------------------------------------------------------------
const ObjectPropID kObjXPropHasContextMenu = 21;     //         YES         // Sends ObjectContextMenuEvent::kAction_Init and ObjectContextMenuEvent::kAction_Event
//       // Boolean                                  //                     // The parametric can build up context menu and respont to context menu items selection
//		 Parametric has custom context menu			 //                     // 
//---------------------------------------------------//---------------------//-------------------------------------------------------------------------------------------------

-Josh

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...