> Ok, I've seen various add-ins that suggest a custom object (or at least a
> standard object with additional tags) is being created. This usually involves
[quoted text clipped - 11 lines]
> automatically or wait to be clicked and whether to advance to the next slide
> once the timer runs out).
Starting thought: create an add-in with event handler and a menu. Click "Add timer" on
the menu and it creates a shape of the type and size you want and pops a dialog so the
user can fill in the needed info.
Then instead of getting too fancy with the editing, maybe just another item on the menu
.. Edit Timer. If the user selects one of your objects, clicking this brings up the
edit dialog. Otherwise it tells the user to select a timer object first. You could get
fancier and check each shape on the slide to see if it's one of yours and if there's
only one, pull that up automatically when the user hasn't selected it.
> 2) It needs to have an "on click" action already defined which I will then
> trap when the show is running in order to start (and / or pause) the timer. I
> would also like to trap either a double-click or a right-click or a
> shoft-click in order to allow the user to alter the time during the
> presentation.
OnClick shouldn't be hard (assign it a Run Macro action setting and have the macro run
whatever code you need it to (out of your add-in). The macro could detect whether or
not a shift/alt/ctrl key is depressed and give you add'l options that way.
Or trapping the rightclick as you describe ...
>I might do this, however, by adding something to the context
> enu whenever a slide shows with a timer on ot.
[quoted text clipped - 46 lines]
> > PPTools: www.pptools.com
> > ================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Paul Simpson - 20 Sep 2007 05:28 GMT
> > 1) When it is created it will auomatically have a couple of additional
> > properties (held in tags) so a dialog will need to come up to allow the user
[quoted text clipped - 11 lines]
> fancier and check each shape on the slide to see if it's one of yours and if there's
> only one, pull that up automatically when the user hasn't selected it.
Ok, that seems reasonable, I guess I was thinking I needed the user to
"draw" on the page (like when you create a text box) but there isn't any
reason why they can't re-size and move it afterwards (and reformat it).
Thanks for the inspiration!
> > 2) It needs to have an "on click" action already defined which I will then
> > trap when the show is running in order to start (and / or pause) the timer. I
[quoted text clipped - 5 lines]
> whatever code you need it to (out of your add-in). The macro could detect whether or
> not a shift/alt/ctrl key is depressed and give you add'l options that way.
Sorry to be a pain, but I haven't been able to find how to programmatically
set this - can you point me in the right direction? What is the object
property actually called (as I obviously don't want the user to have to set
this up themselves ;-)
Thanks again for all your input on this (and my other threads!!!!)
Paul
Steve Rindsberg - 20 Sep 2007 06:28 GMT
> > > 1) When it is created it will auomatically have a couple of additional
> > > properties (held in tags) so a dialog will need to come up to allow the user
[quoted text clipped - 32 lines]
> property actually called (as I obviously don't want the user to have to set
> this up themselves ;-)
You won't do yourself damage if I tell you that you can use the Macro Recorder to grab the
code for this? <g>
Sub SetAction(oSh As Shape)
With oSh.ActionSettings(ppMouseClick)
.Run = "MacroName"
.Action = ppActionRunMacro
.SoundEffect.Type = ppSoundNone
.AnimateAction = msoFalse
End With
End Sub
Google around GetAsyncKeyState to find a way to detect ctrl/alt/other keys.
I don't have any examples I'm free to publish, I'm afraid.
> Thanks again for all your input on this (and my other threads!!!!)
>
> Paul
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================