![]() |
【转帖】he toolbar disappeared
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 |
所有的时间均为北京时间。 现在的时间是 05:40 AM. |