×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Toolbar-Addin

Toolbar-Addin

Toolbar-Addin

(OP)
I was wondering if someone could send me the script for a simple add-in including a new toolbar.

RE: Toolbar-Addin

Bouke:

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?

"Great ideas need landing gear as well as wings."--C. D. Jackson
http://www.EsoxRepublic.com

RE: Toolbar-Addin

I am told that there is a template of code on the SW website for doing add-ins with toolbars.  Apparently it is not real hard.  The thing that takes the tricks is macros from your own custom toolsbars. JH will enlighten you, Tick.

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

(OP)
TheTick:
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

Bouke:

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.

"Great ideas need landing gear as well as wings."--C. D. Jackson
http://www.EsoxRepublic.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources