Slide with animation: how to find if we are in the beginning/end

V

Vadim Berman

I develop some external toolbar that among other things implements
Next/Previous functions for the currently opened PowerPoint presentation. I
need to programmatically find out if these buttons should be
enabled/disabled. For a presentation without animation I can just check the
current slide index against the total number of slides in the presentation.
However if the current slide includes animation I need to check if it is in
the beginning/middle/end of the animation sequence.

Is there any simple way to do this? I think that going through all the
shapes in the slide and analyzing all the properties may be an overkill.

If however the only way is to go through all the shapes then the question
would be: how to find the current position inside the slide with regard to
animation?

Thanks,

Vadim
 
S

Shyam Pillai

Vadim,
Your approach will depend upon the version of PowerPoint.
With PowerPoint 2002/2003 you can quickly ascertain the number of animations
using the MainSequence count for the Timeline object.
With PowerPoint 97/2000 you will need to iterate thru all the shapes.
PrintSteps is not a reliable property in some cases.
If however the only way is to go through all the shapes then the question
would be: how to find the current position inside the slide with regard to
animation?
No way to do this apart from keeping track right from the beginning.
 
V

Vadim Berman

Shyam,

Thank you for the answer.
No way to do this apart from keeping track right from the beginning.

Sorry, I don't understand this part. The presentation is not under my
control all the time. User opened it and he can interact with it with the
mouse, and also some animated elements can appear automatically a few
seconds after the previous event. The user than clicked my button, I called
SlideShowView.Next() and now I want to know if all the animations on this
slide are done or the slide is somewhere in the middle. Ideally (for some
other purposes) I would like to know what elements are visible at this point
and what are not. I could not keep track of all user actions, so is there
any way to find this out?

Thanks again,

Vadim
 

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