几何尺寸与公差论坛

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

【转帖】he toolbar disappeared

[复制链接]
发表于 2009-4-13 14:57:25 | 显示全部楼层 |阅读模式
the toolbar disappeared
i have an addin working fine
today, i just added one more button and run sw - the toolbar was disappeared
any idea why?
thx, chris
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
hi chris,
did you create the additional button (on the toolbar image) for the toolbar?
what function do you use to add your toolbar? you can get the value it treturns and ensure taht its being added in the first place!
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
here is the code to create a new custom toolbar named "gt_1"
after running this addin, a menu was added to the sw; however, the toolbar "gt_1" was not appeared
i declared itoolbarid as long and it returns -1 when i run this addin
any idea why?
and by the way, this code worked fine before, just added on more command button and the toolbar was gone for good
thx, chris
itoolbarid = isldworks.addtoolbar4(icookie, "gt_1", 102, 101, -1, swdoctemplatetypeassembly + swdoctemplatetypepart)
' custom properties editor
bret = isldworks.addtoolbarcommand2(icookie, itoolbarid, 0, "call_editprop", "update_editprop", _
"custom properties editor", "edit custom properties")
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
edited: 07/10/2008 at 06:33 pm by chris ch
never mind, group
nothing is wrong with the code
the toolbar was disappeared because i did not create the bitmap file correctly
chris
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-22 19:04 , Processed in 0.035706 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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