Group:  Other Microsoft Office Products ยป microsoft.public.powerpoint
Thread: Customized swatch button

Geek News

Customized swatch button
vvskpk 12/31/2008 7:46:05 AM
Hi there,

I'm trying for a toolbar with which I can create my own color swatches
instead of entering values each and everytime as default palette gets
overwritten with new value. I have about 20 colors to use in each file.

Now, I can create a macro for each color. But I want that macro to appear as
a button with the same color swatch so that I can recognize the swatch. I'm
ok till create a toolbar with faceID explorer. But unable to get my color
swatch as a button to appear permanently as a regular faceid. I can copy the
color and paste it to appear as a button but it gets erased when I reopen the
powerpoint or deply to another system. The toolbar shows blank. I also cannot
give customized color to the faceid buttons. It has only a few colors to fill
the box. I also want to deply this color swatches to my friends to make their
life easier. Here is my example macro for filling the color.

With ActiveWindow.Selection.ShapeRange
.Fill.Visible = msoTrue
.Fill.ForeColor.RGB = RGB(184,167,247)
.Fill.Solid
End With
ActivePresentation.ExtraColors.Add RGB(Red:=184, Green:=167, Blue:=247)
ActiveWindow.Selection.ShapeRange.Line.Visible = msoFalse
ActiveWindow.Selection.Unselect

Simply put, I need a button with the above defined color swatch permanently
likewise regular faceid to recognize each swatch.

Hope someone can solve my problem!
RE: Customized swatch button
vvskpk 12/31/2008 7:49:01 AM
Sorry, I forgot to mention that I'm using Powerpoint 2003. Please see my
query below.
------
"vvskpk" wrote:

[Quoted Text]
> Hi there,
>
> I'm trying for a toolbar with which I can create my own color swatches
> instead of entering values each and everytime as default palette gets
> overwritten with new value. I have about 20 colors to use in each file.
>
> Now, I can create a macro for each color. But I want that macro to appear as
> a button with the same color swatch so that I can recognize the swatch. I'm
> ok till create a toolbar with faceID explorer. But unable to get my color
> swatch as a button to appear permanently as a regular faceid. I can copy the
> color and paste it to appear as a button but it gets erased when I reopen the
> powerpoint or deply to another system. The toolbar shows blank. I also cannot
> give customized color to the faceid buttons. It has only a few colors to fill
> the box. I also want to deply this color swatches to my friends to make their
> life easier. Here is my example macro for filling the color.
>
> With ActiveWindow.Selection.ShapeRange
> .Fill.Visible = msoTrue
> .Fill.ForeColor.RGB = RGB(184,167,247)
> .Fill.Solid
> End With
> ActivePresentation.ExtraColors.Add RGB(Red:=184, Green:=167, Blue:=247)
> ActiveWindow.Selection.ShapeRange.Line.Visible = msoFalse
> ActiveWindow.Selection.Unselect
>
> Simply put, I need a button with the above defined color swatch permanently
> likewise regular faceid to recognize each swatch.
>
> Hope someone can solve my problem!
Re: Customized swatch button
Steve Rindsberg <abuse[ at ]localhost.com> 12/31/2008 7:49:39 PM
The only practical way to do what you're after is to write an add-in that
creates your own toolbar, buttons and the code behind them to apply the colors.
It's do-able but might take a bit more work than you'd expect.

Start here and read the first few entries to get an idea where to start:

Creating and Installing Add-ins, Toolbars, Buttons
http://www.pptfaq.com/index.html#name_Creating_and_Installing_Add-ins-_Toolbars-
_Buttons

Before deciding whether to invest the time needed, you might first want to have
a look at our ShapeStyles addin, which lets you create styles that include
color, text formatting and much more, rather than just simple colors (though it
doesn't give you colored buttons).

The free demo lets you create up to 5 styles, and is available at
http://www.pptools.com/shapestyles/

[Quoted Text]
>
> I'm trying for a toolbar with which I can create my own color swatches
> instead of entering values each and everytime as default palette gets
> overwritten with new value. I have about 20 colors to use in each file.
>
> Now, I can create a macro for each color. But I want that macro to appear as
> a button with the same color swatch so that I can recognize the swatch. I'm
> ok till create a toolbar with faceID explorer. But unable to get my color
> swatch as a button to appear permanently as a regular faceid. I can copy the
> color and paste it to appear as a button but it gets erased when I reopen the
> powerpoint or deply to another system. The toolbar shows blank. I also cannot
> give customized color to the faceid buttons. It has only a few colors to fill
> the box. I also want to deply this color swatches to my friends to make their
> life easier. Here is my example macro for filling the color.
>
> With ActiveWindow.Selection.ShapeRange
> .Fill.Visible = msoTrue
> .Fill.ForeColor.RGB = RGB(184,167,247)
> .Fill.Solid
> End With
> ActivePresentation.ExtraColors.Add RGB(Red:=184, Green:=167, Blue:=247)
> ActiveWindow.Selection.ShapeRange.Line.Visible = msoFalse
> ActiveWindow.Selection.Unselect
>
> Simply put, I need a button with the above defined color swatch permanently
> likewise regular faceid to recognize each swatch.
>
> Hope someone can solve my problem!


==============================
PPT Frequently Asked Questions
http://www.pptfaq.com/

PPTools add-ins for PowerPoint
http://www.pptools.com/

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net