查看单个帖子
旧 2009-04-13, 08:49 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】addmenupopupitem2

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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)