how to store icons for buttons in a PP toolbar i am creating

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a very ambitious project that i am attempting.

i work for a company that uses lots of 5/8" or 1/2" and 5/16" sorts of
numbers. i want to be able to create an add in that has a toolbar that has
the ability to insert the symbols by clicking a button.

i have already created the macros, and the toolbar and edited the buttons
icons to what i want them to be. the problem is using code i found in this
site i found that it calls the icons that are premade from MS in powerpoint
to put an icon on the button. this is not acceptable. :) i want it to show
the fractions.

is there a way to create an icon with the edit button tool and save it
somewhere? in a seperate file might be ideal.

additionally does anyone know of a way to "fractionalize" a few characters?
in most font files there are 1/2s and such but i am looking to make it
possible to change numbers like 5/16 into a fraction like ½. is there some
code to do this or some font that has a load of fractions no matter how
rarely used?

thanks in advance! :)
 
DawnTreader said:
i have a very ambitious project that i am attempting.

i work for a company that uses lots of 5/8" or 1/2" and 5/16" sorts of
numbers. i want to be able to create an add in that has a toolbar that has
the ability to insert the symbols by clicking a button.

i have already created the macros, and the toolbar and edited the buttons
icons to what i want them to be. the problem is using code i found in this
site i found that it calls the icons that are premade from MS in powerpoint
to put an icon on the button. this is not acceptable. :) i want it to show
the fractions.

When creating the buttons on the toolbar, you can use the .PasteFace method to
paste whatever's on the clipboard to the button.

You can open a new presentation (hidden if you like), add a text box, make the
text box read e.g. "5/16" and format it to suit. Use the Copy method to put it
on the clipboard, then create your button and .PasteFace.

Change the text, copy, make another button, .PasteFace, etc.

If you prefer separate files, you can make the icon graphic in a bitmap or wmf
file, insert it into PPT programmatically, copy it, and delete it, then again
use .PasteFace.

Using separate graphics files would be useful if you can find a good fraction
font, since the font would only need to be present on your system and then only
while you create the button graphics.

Google "fraction font" for starters.
 
Back
Top