Will Posted June 23, 2017 Share Posted June 23, 2017 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? Quote Link to comment
JBenghiat Posted June 23, 2017 Share Posted June 23, 2017 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 1 Quote Link to comment
Will Posted June 23, 2017 Author Share Posted June 23, 2017 Awesome! Thanks that is great. That file has just unlocked so many mysteries that have been bugging me for ages. Quote Link to comment
Recommended Posts
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.