Toolbar-Addin
Toolbar-Addin
(OP)
I was wondering if someone could send me the script for a simple add-in including a new toolbar.
When was the last time you drove down the highway without seeing a commercial truck hauling goods?
Download nowINTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: Toolbar-Addin
Maybe they can help.
Regards,
Scott Baugh, CSWP

http://www.3dvisiontech.com
http://www.scottjbaugh.com
FAQ731-376
RE: Toolbar-Addin
Your recent requests have gotten me curious about finally learning to do this. I'll let you know as soon as I figure it out.
Regards,
Tick
P.S. did you get the BitWright addin from me this morning?
http://www.EsoxRepublic.com
RE: Toolbar-Addin
I was - and he did. So at least I didn't get coal.....
OK, OK, It's a reference to my holiday sig. "Be naughty - Save Santa a trip..."
RE: Toolbar-Addin
Yeah, I've gotten your file with the vb-template yesterday afternoon. At the moment I'm waiting until my new workstation is installed so I haven't had the chance to look at it. But as soon as I make some progress I'll let u know.Grtz,
Bouke
RE: Toolbar-Addin
I've cracked the "toolbar" code. Not too difficult, once you get it.
To start, here is an article that helped it all make sense w.r.t. putting bitmaps into VB addins:
http://www.zarr.net/vb/articles/vb6res.asp
In the SW API help, the "resource ID numbers" are the numbers in the resource file described in this article.
Toolbars are made from bitmaps. Each button is a section of the bitmap (see the API help for bitmap dimensions). i.e. for a small toolbar, each button is 16 pixels wide, so a 2-button toolbar would be 32 x 15 pixels. A large 2-button toolbar would be 44 wide x 22 high.
You need to design large and small toolbars. They are used when options are toggled between large and small icons (under customize in the toolbar menu).
SW does all the dividing and indexing. On the toolbar, the buttons are separated "by the numbers", i.e. button(0) = pixels columns 1-16, button(1)=pixel columns 17-32, etc. on a small toolbar.
http://www.EsoxRepublic.com