几何尺寸与公差论坛

 找回密码
 注册
查看: 706|回复: 0

【转帖】addmenupopupitem2

[复制链接]
发表于 2009-4-13 08:49:07 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-24 02:59 , Processed in 0.034728 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表