WindowBeforeDoubleClick Event Not Firing in PowerPoint 2007 Macro

D

Dave Jenkins

I have a set of macros that contains an event handler for the
WindowBeforeDoubleClick event. This class method has been working fine in
2003 for a year or so. Today I migrated to Office 2007, and the event
doesn't appear to be firing. I have handlers for other events
(PresentationClose, PresentationBeforeSave, AfterPresentationOpen, e.g.) and
they appear to be operating as they did in the previous version.

Is there anything different about the WindowBeforeDoubleClick event in 2007?
I need some way to recognize the selection of a shape with a certain tag -
if I can't do it with a double-click, can you suggest an alternative that's
just as easy on my users?

Thanks.
 
D

Dave Jenkins

Steve Rindsberg said:
SelectionChange should do it, though you might need some extra logic to deal
with what's been selected.


-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


Thanks, Steve.

I'd already thought of that, but I'm using that event for other purposes
(sensing when a new slide is being viewed in Normal mode) and I didn't want
to fool around with that code. I guess I may have to.

However, that leaves unanswered the more basic question: why don't
WindowBeforeDoubleClick and WindowBeforeRightClock fire? I've read the
documentation on events in 2007, and those events are there, and there's no
verbiage saying anything about them behaving differently. Got any insight
on that issue?
 
D

Dave Jenkins

Steve Rindsberg said:
SelectionChange should do it, though you might need some extra logic to deal
with what's been selected.


Do you mean the WindowSelectionChange event? If so, I'm now using that, and
it's identical code to what I had for the WindowBeforeDoubleClick event
handler. I don't think I knew about that event, so many thanks. (I lied in
my previous response - I was thinking about slide change events.)

One more thing: Was WindowSelectionChange an event that could be handled in
2003? I'm worried now about backward compatibility, since most of my users
are on 2003.

Thanks!
 
S

Shyam Pillai

However, that leaves unanswered the more basic question: why don't
WindowBeforeDoubleClick and WindowBeforeRightClock fire?
Double-click on shapes doesn't really do anything. Right-click menus cannot
be customized anyways, so I think that may have been left out too.


--
Regards,
Shyam Pillai

Image Importer Wizard
http://skp.mvps.org/iiw.htm
 
D

Dave Jenkins

One more thing: Was WindowSelectionChange an event that could be handled in
2003? I'm worried now about backward compatibility, since most of my users
are on 2003.

For others who may be working in this area, it does appear the
WindowSelectionChange does work in PPT 2003.
 
J

Jens-Olaf Hemprich

Hmm, we've used the right click event to successfully replace the context
menu with our own since Office 2000 in both Word and PowerPoint. Works pretty
well (with the excpetion of PowerPoint 2007). I was really surprised the PP
dev team hadn't fixed that in SP1.

Does anyone know if a fix is in the works?

By the way: Our Add-In is C++, but the right click issue can easily be
reproduced with VBA too.


Cheers, Jens

Shyam Pillai said:
However, that leaves unanswered the more basic question: why don't
WindowBeforeDoubleClick and WindowBeforeRightClock fire?
Double-click on shapes doesn't really do anything. Right-click menus cannot
be customized anyways, so I think that may have been left out too.


--
Regards,
Shyam Pillai

Image Importer Wizard
http://skp.mvps.org/iiw.htm
 

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