Hi EV1,
I've created an addin with a commandbar and a few commandbar buttons.
My wish is to control that command bar and Enable/Disable it's buttons
according to selection of a shape.
For example, one of the buttons involved with picture manipulation, so
if the user selects one of the pictures on the slide in a normal view,
i would like to enable the "Picture Command Bar Button". A few
questions:
1. Where do i put the code that defines Enable/Disable of a commandbar
button? (Normal View)
2. How do i know if a shape is selected? ( By now i found only the
Selection of ShapeRange )
I would be grateful if you could give me a code example.
Thanx,
Gil H
Shyam Pillai - 14 Oct 2006 14:48 GMT
Is picture command bar your custom bar or the one that ships with
PowerPoint? The in-built one automatically pops up if you select a picture
unless it has been hidden manually. To determine the selection, create an
event handler and trap the WindowSelectionChange event and check what the
selection is. You will get the code to create an event handler on Steve's
site http://www.pptfaq.com under the programming section.

Signature
Regards,
Shyam Pillai
Animation Carbon
http://www.animationcarbon.com
> Hi EV1,
>
[quoted text clipped - 14 lines]
> Thanx,
> Gil H
Gil_H - 14 Oct 2006 17:54 GMT
Thanx Shyam, That sloved my problem!!
Gil H.