Click to See Complete Forum and Search --> : Custom Button Face


Ludo Timmermans
June 25th, 2001, 02:57 AM
Hello everybody.

First of all, great that there is a site like this! I hope that a complete rookie like me in VB gets some help from you novice guys and girls :-)
Here's my question: I made a custom toolbar in VB that comes in PowerPoint2000. I converted The little program in to a ad-inn. For now everything works fine. It does what I want: it makes a toolbar with buttons that opens presentations. But I want to change the icons on the buttons. And here comes the problem. The buttons have standard Office face-icons (52-pig and 51-hand). In PowerPoint I cutomize the pig and hand-icon by manually editing my toolbar and the button-icons (I remove the pig and hand and draw my own buttonfaces). Is there a way to include self made faces for the buttons inside my programming?
Thanx in advance.
Ludo.

Captain Nuss
June 25th, 2001, 03:42 AM
The normal way to include icons into your programs would be to use an image list, bind that list to your toolbar and assigning the different icons included in your imagelist to the toolbar buttons.

Ludo Timmermans
June 25th, 2001, 05:02 AM
Hi Captain Nuss.
Thanx for the real quick response. I'm a complete rookie in programming. The answer you give me make's the impression that i have to make several icons for the buttons in, lets say Photoshop, and then save them on to my disk. Then by making an imagelist assigning them to a button the job is cleared. But when I give the ad-inn to someone else, i have to give the icons to and the exact location where to put them (because the location is programmed). But isn't there a way to include the icons in the programming?
Or do i interpret your answer totally wrong?
Ludo.

Simonkale
June 25th, 2001, 05:47 AM
No you don't have to give icons. When you compile to EXE, the icons will be coded in the program itself.

Visual Basic Q & A
http://simon.mifix.net

Ludo Timmermans
June 27th, 2001, 02:10 AM
Ok that's cool. But here's the catch: they are custom buttons in a VBA in PowerPoint that I convert to a PowerPoint Add-in. Do the pics compile in VBA as wel?

Ludo.