Toolbar-Buttons with colors

G

George

Hi

I have to rebuild an existing add-in (.ppa), which creates
a toolbar that helps to assign a certain color to an element
on a slide.

Each button of this existing add-in shows the (RGB-)
color on it. How is this done? There are no additional
grafics; the add-in is a stand-alone solution.

Has somebody an idea, how I can create such a tool-
bar with "RGB-colored" buttons?

PS: Only the coloring of the buttons is my problem, not
the code which runs when they are activated.

Thanks for any help. Maybe a .ppa can be reconverted
to a .ppt?

Best Regards, George
 
C

Chirag

Hi George,

The CommandBarButton object has a Picture property that is an IPictureDisp.
You can use any Image object on a UserForm and get its Picture to assign to
this Picture property of CommandBarButton.

You also get the Windows GDI Handle to this Picture property of
CommandBarButton. That is useful with Windows API to draw stuff on.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html
 
G

George

Dear Steve

Many Thanks. Build on your recommendations I was able
to build a toolbar as given before.

One last thing. When I Start with ...

---------------
Presentations.Add WithWindow:=msoFalse
ActivePresentation.Slides.Add(Index:=1, Layout:=ppLayoutBlank).SlideID
---------------

.... a new slide is added to the open, allready existing presentation and
when I close the "ActivePresentation", the Active Windows closes (not
the invisible presentation).

I think, I do someting wrong when opening a slide in the invisible
presentation
and closing this presentation again in the end. Can you help? Thanks a lot.

Best Regards, George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top