Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / June 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DawnTreader - 13 Jun 2006 00:43 GMT
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! :)
Steve Rindsberg - 13 Jun 2006 01:22 GMT
> i have a very ambitious project that i am attempting.
>
[quoted text clipped - 7 lines]
> 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.

> is there a way to create an icon with the edit button tool and save it
> somewhere? in a seperate file might be ideal.
[quoted text clipped - 6 lines]
>
> thanks in advance! :)

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
Steve Rindsberg - 13 Jun 2006 01:24 GMT
Oh, almost forgot ...

You might also be able to make use of this:

Create "proper" fractions
http://www.rdpslides.com/pptfaq/FAQ00596.htm

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.