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 / October 2006

Tip: Looking for answers? Try searching our database.

Enable/Disable Commandbar buttons in normal view

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gil_H - 14 Oct 2006 10:47 GMT
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.
 
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.