Right-Click during a show

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is it possible to trap the right-click event during a show & determine which
object is under the cursor at the time? (VBA)

What I have is an object on the screen which is a timer. What I want to do
is to trap the right-click before the menu appears so that I can test if the
object under the mouse pointer is a timer. If so, I want to add a couple of
items to the menu before it gets displayed. If not, then I want to make sure
those items are not there.

Sincethere could be a number of timers on-screen at a given time, it is
important to know which one is being referenced by the menu (even if it turns
out the items have to be there all the time!) The extra menu items are to
start / stop / reset the timers.

TIA for any help you can offer :-)

Paul
 
Prolly the easiest way to do this is to assign a ""MouseMove" event to the
timer. When the user puts the mouse over the timer it will fire off your
code. Assume your code then sets a variable like "oTimer = 1". Should be
easy to use that variable as you want.


Austin Myers
MS PowerPoint MVP Team

Provider of PFCPro, PFCMedia and PFCExpress
www.playsforcertain.com
 
Hummm, I think I see what you mean - I should be able to go with that! I take
it I'd have to have a static context-sensitive menu though (unless you can
suggest a way of doing an "onMouseOut" style event!

Cheers,

Paul
 
I was half joking! Is there one? (There are only the onClick and MouseOver
events listed on the assign macro dialog)

Better still, is there a complete list of events that can be tapped into
anywhere?

TIA (again!)

Paul
 
Paul,

Do you have a file from MS named "vbapp10.chm"? If not go to the Microsoft
site and do a search for it and download it to your machine. It has the
complete documentation of the PowerPoint object model for PowerPoint (except
PPT 07) as well as examples on how to use it.


Austin Myers
MS PowerPoint MVP Team

Provider of PFCPro, PFCMedia and PFCExpress
www.playsforcertain.com
 
Once again, thanks for the pointer!

I had a look and according to the page I was looking at (ActionSettings
Collection Object) there are two action settings "Use ActionSettings(index),
where index is either ppMouseClick or ppMouseOver, to return a single
ActionSetting object." So it looks like mouseOut etc isn't going to be a
flyer :-(

Oh well, thanks anyway :-)

Paul
 
Back
Top