|
addmenupopupitem2
hi everyone,
can someone explain to me how exactly the menuenablemethod works as seen in the addmenupopupitem2 function.
sldworks::addmenupopupitem2
i read the explanation given in the api but its still a bit unclear to me. it says that:
solidworks calls this function before displaying the menu ...
so is it only called once and thats it or is it repeatedly called once something changes in sw?
additionally if i want to implement this method where do i add it?
i am writting a sw addin using vb.net.
cheers,
--stav.
in this world i am nobody...
and nobody is perfect ;) !!!
---------
solidworks office 2008 sp4.0
dell precision pws390
nvidia quadro fx 3450/4000 sdi
edited: 09/08/2008 at 05:59 am by stavros antoniou
hi stav,
i am pretty sure that this function is for the in-context menus that appear when a user right-clicks. so it is a way to add your own custom menu item to the menu. so it is called each time a user right clicks.
to add it, it would probably be something you call in the initialization that your add-in must do when registering itself when loaded (vbaddin.init?)
have fun!
quick |
|