MS Office Forum / General PowerPoint Questions / June 2006
In PowerPoint is there a way of setting up a mouse over function
|
|
Thread rating:  |
pfx - 19 May 2006 05:14 GMT I would like to set up a text button (actually several) on a master page so that when you mouse over it - an image occurs in a different place on the slide, the same as what you see on many web pages. Is this possible? I'm familiar with the normal mouse over/down actions but they don't allow you to affect another object. Thanks in advance
John Wilson - 19 May 2006 07:26 GMT You can use mouse click to trigger animations
With mouse over you will need to hyperlink to duplicate slides that have the new image included
 Signature ----------------------------------------- Did that answer the question / help? _____________________________ John Wilson Microsoft Certified Office Specialist
> I would like to set up a text button (actually several) on a master page so > that when you mouse over it - an image occurs in a different place on the > slide, the same as what you see on many web pages. Is this possible? I'm > familiar with the normal mouse over/down actions but they don't allow you to > affect another object. > Thanks in advance Luc - 19 May 2006 07:26 GMT Pfx, You can activate another object by clicking on another one. Select the image, apply an entrance effect using the custom animation task pane. Double click the effect on the time setting tab, choose the object on your slide that should trigger the image in the list.
If you want to use a mouse-over (sort of) you could make two slides one without the picture and one with. On the slide without the picture, rightclick the object you want the mouse over on, choose action settings - choose second tab in the dialog - choose link to 'next slide' . No quite what you were looking for, but close.
 Signature Luc Sanders (MVP - PowerPoint)
>I would like to set up a text button (actually several) on a master page so > that when you mouse over it - an image occurs in a different place on the [quoted text clipped - 3 lines] > affect another object. > Thanks in advance pfx - 19 May 2006 07:49 GMT Thanks John and Luc,
Yes I use the duplicate slide workaround and it does a good job of tricking the viewer into thinking they are getting a mouseover/swap image effect. The problem I'm having at the moment is that I am putting these buttons on a master slide and can't access them when I use the Action command. The only slides that I can see are the ones in the actual presentation. The Action command seems to apply only to the Show slides and doesn't let you get at the Master slides. Any thoughts. Thanks again
> Pfx, > You can activate another object by clicking on another one. Select the [quoted text clipped - 15 lines] > > affect another object. > > Thanks in advance John Wilson - 19 May 2006 08:37 GMT Sorry I dont understand what youre saying.
You can definitely put buttons / shapes on the slide master and apply action settings which will work on all slides.
You can also copy/paste buttons retaining their actions.
Get back if Ive got the problem wrong
 Signature ----------------------------------------- Did that answer the question / help? _____________________________ John Wilson Microsoft Certified Office Specialist
> Thanks John and Luc, > [quoted text clipped - 26 lines] > > > affect another object. > > > Thanks in advance Luc - 19 May 2006 08:44 GMT Am i understanding correctly when you say you want to put action buttons on the master that will let you mouse over and show a picture. As John said this will affect all of your slides, unless you make two masters (give them a distinctive name) and apply the button only to one of the masters. Now everytime you need to mouse-over to show a picture, apply the master with the button to the first slide which will bring you to the duplicate slide.
 Signature Luc Sanders (MVP - PowerPoint)
> Thanks John and Luc, > [quoted text clipped - 35 lines] >> > affect another object. >> > Thanks in advance John Wilson - 19 May 2006 08:56 GMT Penny drops (maybe)
Are you trying to put the button on the master and asign different actions to it on different slides??
You cant! You can use the cut and paste method (which will ensure that the buttons look the same and are placed in the same place) - and then edit the action settings
 Signature ----------------------------------------- Did that answer the question / help? _____________________________ John Wilson Microsoft Certified Office Specialist
> Am i understanding correctly when you say you want to put action buttons on > the master that will let you mouse over and show a picture. As John said [quoted text clipped - 43 lines] > >> > affect another object. > >> > Thanks in advance pfx - 19 May 2006 09:49 GMT Hi John and Luc,
Just to clarify, I want to put a series of buttons on a master slide so that when I mouse over a button a label/text box will appear in another place on the master slide that will explain what the button relates to. This is basically a navigator that will allow the user to move from one presentation to another presentation. For example the Master slide will have the buttons M, P, P, F, T, M. When each is moused over it will display its companion label from one of the following: Metro, Projects, Process, Finishes, Technical, Misc. If any of these buttons are clicked, it will activate the relevant presentation already sitting in the background. Being a Master slide I want these buttons to be visible on all of the 'Show' slides and I will be duplicating these buttons on the Master slides of the other presentations so that the user can move freely around regardless of which slide of any of the six presentations they happen to be on. With respect to the workaround of using duplicate slides with the changed images, this works well with the normal 'Show' slides, ie you can use the Action function to move to another slide using MouseOver or Click. However, this functionality does not seem to let you move from one Master slide to another Master slide. When you use the Hyperlink function it only displays the Show slides and does not give you access to the alternate Master slides that I would like to link to. I hope this explains things better and I appreciate your assistance in this. Regards Chris
> Penny drops (maybe) > [quoted text clipped - 52 lines] > > >> > affect another object. > > >> > Thanks in advance Luc - 19 May 2006 12:08 GMT pfx,
Let's give it another shot.
"Just to clarify, I want to put a series of buttons on a master slide so that when I mouse over a button a label/text box will appear in another place on the master slide that will explain what the button relates to. This is basically a navigator that will allow the user to move from one presentation to another presentation. For example the Master slide will have the buttons M, P, P, F, T, M. When each is moused over it will display its companion label from one of the following: Metro, Projects, Process, Finishes, Technical, Misc."
If you want to display text when mousing over a button of the master slide you could do the following on the master, draw a rectangle or any other shape, choose Insert - Hyperlink - browse to the presentation you want to hyperlink to, now click on the screen tip button, top of the dialog and type the text you want to be appearing when you mouse over it. Repeat the process for the other buttons.
"If any of these buttons are clicked, it will activate the relevant presentation already sitting in the background. Being a Master slide I want these buttons to be visible on all of the 'Show' slides and I will be duplicating these buttons on the Master slides of the other presentations so that the user can move freely around regardless of which slide of any of the six presentations they happen to be on."
As these buttons are on the master of all the presentations (as you claim), they will allow the user to freely move from one presentation to the other and back. Yes, but when you jump from one presentation to the other using your buttons it will bring you back to the beginning of the presentation and not to the slide last viewed. Can't test it here but that is what will happen I think.
 Signature Luc Sanders (MVP - PowerPoint)
> Hi John and Luc, > [quoted text clipped - 110 lines] >> > >> > affect another object. >> > >> > Thanks in advance John Wilson - 19 May 2006 12:36 GMT I was just about to type just that!!!!
John Wilson Microsoft Certified Office Specialist
> pfx, > [quoted text clipped - 144 lines] > >> > >> > affect another object. > >> > >> > Thanks in advance John Wilson - 19 May 2006 12:56 GMT Wouldnt it be simpler to have a series of custom shows within one presentation (they can have different masters if need be)
Have a menu slide with the navigation buttons each hyperlinked to a custom show, with a screen tip as above and "show & return" ticked
In each slide of the custom shows add a "end show" button.
you can navigate to ant custom show and either play it through or click "end show" on any slide - either of these action will take you back to the menu.
 Signature ----------------------------------------- Did that answer the question / help? _____________________________ John Wilson Microsoft Certified Office Specialist
> I was just about to type just that!!!! > [quoted text clipped - 149 lines] > > >> > >> > affect another object. > > >> > >> > Thanks in advance Luc - 19 May 2006 13:12 GMT John, I must be a mindreader then.
 Signature Luc Sanders (MVP - PowerPoint)
>I was just about to type just that!!!! > [quoted text clipped - 180 lines] >> >> > >> > affect another object. >> >> > >> > Thanks in advance pfx - 19 May 2006 13:10 GMT Hi Luc, Yes I think you've got a good understanding of what I'm trying to do. I had tried the screen tool tip route and it does work. Some points I found with it though are that there is a bit of a delay before the tool tip displays, you can't control its position and the size/colour/background of the text is completely dependent on the settings of the computer the presentation is being played on. This particular presentation will be used by sales people who I will never meet so I have no control how the tool tips will display. The tool tip settings are governed by a submenu in the Appearance Tab under the Display Properties dialogue box by right clicking the desktop.
I'm fine with moving between linked presentations.
In one of your previous posts you mentioned giving the master pages names. Is there any special advantage in doing this?
Just to recap, all I'm trying to do is set up a mouseover event on a button object that is placed on a master page, which will trigger the appearance of a text box at a different position on the same Master page. I just haven't come up with a workaround yet to achieve this.
Thanks again for your help
> pfx, > [quoted text clipped - 144 lines] > >> > >> > affect another object. > >> > >> > Thanks in advance Luc - 19 May 2006 13:25 GMT Hello again, "In one of your previous posts you mentioned giving the master pages names. Is there any special advantage in doing this?"
Sure is: You can apply a totally different lay-out to certain slides in your presentation if need be. If you give the masters a name, that name will show up in the taskpane under the section 'Used in this presentation'. When you hover over the thumbnail you will see which slides the master has been applied to. Now if there is not much difference between the masters it is difficult to judge which one you must apply. When you give it a good name if will show up and help you distinguish between them.
 Signature Luc Sanders (MVP - PowerPoint)
> Hi Luc, > Yes I think you've got a good understanding of what I'm trying to do. I [quoted text clipped - 204 lines] >> >> > >> > affect another object. >> >> > >> > Thanks in advance pfx - 19 May 2006 13:48 GMT Hi Luc,
What does MVP stand for after your name - is it something like Microsoft xxx Professional. Do you work for Microsoft? You've been very helpful.
Another tack. With the standard mouseover action, is there anyway of changing the parameters here, ie the length of time the mouseover effect occurs, incorporate a mouseout event, change the colour of the mouseover effect. I've just started dipping my toe in the Visual Basic pond and wondered if the mouseover parameters could be edited here.
Thanks
PFX
> Hello again, > "In one of your previous posts you mentioned giving the master pages names. [quoted text clipped - 218 lines] > >> >> > >> > affect another object. > >> >> > >> > Thanks in advance David M. Marcovitz - 19 May 2006 14:41 GMT PFX,
Once you introduce VBA, it's a whole new ball game. First, you need to be sure that your salespeople are running this with the full version of PowerPoint and not the Viewer. Then, you need to get them to set their macro security to Low or Medium (probably Low so they don't keep getting asked if they want to Enable macros). If you can pull this off (and it is no small feat in most organizations), then you could do everything you want in VBA.
A mouse over could be used to trigger a VBA script for hiding and showing of elements on the slide (or even on another slide or even on the slide master). The VBA can deal with your navigation. If VBA is feasible, it is likely to simplify the whole process, but that is a big IF.
For information about what an MVP is, check out:
What and Who are MVPs? http://www.pptfaq.com/FAQ00094.htm
However, this information doesn't include everyone, but it will give you a good overview of the MVP program.
David Marcovitz Microsoft PowerPoint MVP Author of _Powerful PowerPoint for Educators_ http://www.PowerfulPowerPoint.com/
> Hi Luc, > [quoted text clipped - 10 lines] > > PFX pfx - 19 May 2006 16:40 GMT Hi David,
Thanks for taking an interest in my little pursuit. In response to your questions, the sales people will be using the latest full version of PowerPoint and I could include instructions on the first slide about changing security levels etc. I'm ready to take the plunge into VBA if you're willing to point me in the right direction. I have already done some searching on the net and only came up with a few basics. Is there a cache of VBA secrets for PowerPoint hiding somewhere out there? Regards PFX
> PFX, > [quoted text clipped - 37 lines] > > > > PFX David M. Marcovitz - 19 May 2006 18:30 GMT Unfortunately, there isn't a real cache of VBA secrets hidden anywhere. The best you are going to do is probably to go to the PPT FAQ (http://www.pptfaq.com/) and click on the "Programming PowerPoint" link. If you're looking for a book, mine is, unfortunately, the only one (go to http://www.PowerfulPowerPoint.com/) that covers VBA in PowerPoint. The examples are all for an education environment, but I think many of the skills covered will be useful to you. You can look at all of the examples on my Web site and try them out for free. The book explains the examples.
David Marcovitz Microsoft PowerPoint MVP Author of _Powerful PowerPoint for Educators_ http://www.PowerfulPowerPoint.com/
> Hi David, > [quoted text clipped - 7 lines] > Regards > PFX pfx - 20 May 2006 01:43 GMT Thanks David,
Appreciate the website tip and I'll have a good look at your book.
Best Regards
Chris
> Unfortunately, there isn't a real cache of VBA secrets hidden anywhere. The > best you are going to do is probably to go to the PPT FAQ [quoted text clipped - 21 lines] > > Regards > > PFX Steve Rindsberg - 20 May 2006 19:05 GMT > Unfortunately, there isn't a real cache of VBA secrets hidden anywhere. The > best you are going to do is probably to go to the PPT FAQ > (http://www.pptfaq.com/) and click on the "Programming PowerPoint" link. If > you're looking for a book, mine is, unfortunately, the only one (go to > http://www.PowerfulPowerPoint.com/) that covers VBA in PowerPoint. Ahem. You do your site an injustice, sir. You fail to mention the wealth of examples there.
pfx - 22 May 2006 08:41 GMT Hi Everyone, With some serious searching over the net I have come up with an example that I think answers my questions. I found the solution here: http://skp.mvps.org/ppt00049.htm It comes with a sample PowerPoint presentation to show the VB code in action. While being new to VB, I can work out most of what's going in this particular script in that the order in which the text boxes are drawn is important for this particular example. The first text box, Case 1 acts to hide the text that is revealed by mousing over text boxes 2 - 8. It sits behind the other boxes so that as soon as the mouse leaves text boxes 2-8 it is automatically over and activating text box 1 which then hides any visible text. What I haven't been able to work out is how/where the VB script tells text box 8 (Case 8) to display the messages activated by the text box (case) 2-8 mouseovers. Perhaps for this type of function, the last drawn text box is always the one that displays the result? Thanks in anticipation.
> > Unfortunately, there isn't a real cache of VBA secrets hidden anywhere. The > > best you are going to do is probably to go to the PPT FAQ [quoted text clipped - 4 lines] > Ahem. You do your site an injustice, sir. You fail to mention the wealth of > examples there. Steve Rindsberg - 22 May 2006 15:39 GMT > Hi Everyone, > With some serious searching over the net I have come up with an example that [quoted text clipped - 10 lines] > text box 8 (Case 8) to display the messages activated by the text box (case) > 2-8 mouseovers. The code in question is posted below. After each Case, you see the line:
.Text = "whatever"
Since the whole thing is within the context of
With SlideShowWindows(1).View.Slide _ .Shapes(8).TextFrame.TextRange ... End With the .Text in question is the text range of Shape 8.
Sub DisplayMessage(oShp As Shape) ' Ascertain the position of the mouse by checking the ' index value of shape over which the mouse rests. With SlideShowWindows(1).View.Slide _ .Shapes(8).TextFrame.TextRange Select Case oShp.ZOrderPosition ' The purple rectangle on which the buttons rest ' we use the event here to clear the existing message while ' the mouse moves to the next shape Case 1 .Text = "" Case 2 .Text = "Descriptive Message when mouse moves over Shape 2" Case 3 .Text = "Descriptive Message when mouse moves over Shape 3" Case 4 .Text = "Descriptive Message when mouse moves over Shape 4" Case 5 .Text = "Descriptive Message when mouse moves over Shape 5" Case 6 .Text = "Descriptive Message when mouse moves over Shape 6" Case 7 .Text = "Descriptive Message when mouse moves over Shape 7" Case 8 .Text = "Descriptive Message when mouse moves over Shape 8" End Select DoEvents End With End Sub
Perhaps for this type of function, the last drawn text box is
> always the one that displays the result? > Thanks in anticipation. [quoted text clipped - 7 lines] > > Ahem. You do your site an injustice, sir. You fail to mention the wealth of > > examples there. ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================
pfx - 01 Jun 2006 05:25 GMT Hi Steve, Thanks for your response. Apologies for my delayed response due to being offsite on a live in course. With respect to your advice on:
> With SlideShowWindows(1).View.Slide _ > .Shapes(8).TextFrame.TextRange I had incorrectly interpreted '.Shapes(8)' as being the number of shapes involved in the VBScript, however it apparantly refers to number/name of the actual shape. So I assume if it was '.Shapes(6)' the mouseover text would appear in Shape (6). I tried cutting and pasting all of the shapes to the Master to see if they would work there. In 'Show' mode the hyperlinks work but the mouseover function no longer works. Does the script need to be changed somehow so that the mouseover function works if it resides on the master page. Thanks again for your assistance. Chris
> > Hi Everyone, > > With some serious searching over the net I have come up with an example that [quoted text clipped - 74 lines] > PPTools: www.pptools.com > ================================================ Steve Rindsberg - 01 Jun 2006 19:46 GMT > Hi Steve, > Thanks for your response. Apologies for my delayed response due to being [quoted text clipped - 7 lines] > involved in the VBScript, however it apparantly refers to number/name of the > actual shape. That's correct.
Shapes(8) refers to the shape with Index value of 8 or in human, the eighth shape on the slide (press tab repeatedly to cycle through the shapes in index order)
Shapes("Some name") refers to the shape named "Some name"
> I tried cutting and pasting all of the shapes to the Master to see if they > would work there. In 'Show' mode the hyperlinks work but the mouseover > function no longer works. Does the script need to be changed somehow so that > the mouseover function works if it resides on the master page. Depending on the script, yes. That is, if you copy Shape 8 from a slide to the master, it's unlikely that it'll still be Shape 8 on the master. You'd need to adjust for the fact that there are different shapes so different numbers on the master.
> Thanks again for your assistance. > Chris [quoted text clipped - 77 lines] > > PPTools: www.pptools.com > > ================================================ ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================
pfx - 02 Jun 2006 07:02 GMT (I've posted this in two topic areas as both relate to the same project. This is probably the most appropriate place to carry this converstaion forward)
OK this is where I have got to.
Thanks to your suggestions about checking the shape identifier numbers on the master slide, as they are most likely different to what they are/were on the presentation slide, I have been able to make the mouseover action work on buttons placed on the master slide, except... For some reason the mouseover action will only return a result in a shape on a presentation slide and not a master slide. For example, if I start with a new blank presentation and draw 6 mouseover buttons/shapes and one result textbox/shape and insert the following code:
Sub DisplayMessage(oShp As Shape) ' ascertain the position of the mouse by checking the ' index value of shape over which the mouse rests. With SlideShowWindows(1).View.Slide _ .Shapes(7).TextFrame.TextRange Select Case oShp.ZOrderPosition ' The purple rectangle on which the buttons rest ' we use the event here to clear the existing message while ' the mouse moves to the next shape Case 1 .Text = "Metro" Case 2 .Text = "Projects" Case 3 .Text = "Process" Case 4 .Text = "Finishes" Case 5 .Text = "Technical" Case 6 .Text = "Misc" End Select DoEvents End With End Sub
Mousing over any of the button/shapes/case in 'Show' mode will return the appropriate text in the text/rectangle/shape 7.
If I copy all the shapes to the master page, assuming it is completely empty, and position the shapes at a different place on the slide, the pasted shapes on the master slide have exactly the same identifier numbers as the corresponding shapes on the presentation slide. So all of the VB script is still applicable.
When I go to 'Show' mode, if I mouse over the buttons/shapes that were placed on the presentation slide, they return a result in the text/rectangle/shape 7 sitting on the presentation slide. If I mouseover the buttons/shapes that were placed on the master slide they will also return a result, however the result is returned in the text/rectangle/shape7 that is sitting on the presentation slide and not the text/rectangle/shape7 that is sitting on the master page. Even if I create a shape 8 on the master slide and change the VB script to suit, I still can't get a result showing up in a text/rectangle shape sitting on the master slide.
Frustrating, as I need all these buttons on master slides as my project requires around 100 slides between several linked presentations. So you can see I'm trying to keep things simple and a smaller file size by trying to work with the master page for the buttons.
Looking at the VB script again, I'm wondering if the key lies in the lines: With SlideShowWindows(1).View.Slide _ .Shapes(7).TextFrame.TextRange
Are the words 'With SlideShowWindows(1).View.Slide _' telling PowerPoint to look at the presentation slide to return the result in shape 7 rather than returning the result in shape 7 on the master page. If this is the case, is there an alternate script to tell PowerPoint to look at the master page for shape 7 in which to display the result.
I have also tried adding another VB module for the shapes on the master slide but PowerPoint only wants to return a result in shape 7 on the presentation slide.
Again I really appreciate your help and this eventual solution will be used in all my followup presentations.
Regards
Chris
> > Hi Steve, > > Thanks for your response. Apologies for my delayed response due to being [quoted text clipped - 111 lines] > PPTools: www.pptools.com > ================================================ Steve Rindsberg - 02 Jun 2006 16:08 GMT > (I've posted this in two topic areas as both relate to the same project. This > is probably the most appropriate place to carry this converstaion forward) [quoted text clipped - 57 lines] > and change the VB script to suit, I still can't get a result showing up in a > text/rectangle shape sitting on the master slide. Because the whole thing takes place within the context of this:
With SlideShowWindows(1).View.Slide _ .Shapes(7).TextFrame.TextRange
.... stuff End with
Change it to
With SlideShowWindows(1).View.SlideMaster _ .Shape etc etc etc
And if you're going to be using this a lot, it might be more reliable to take the time to name each of the shapes rather than relying on index order.
Sub DisplayMessage(oShp As Shape) ' The shape's .Parent will be either the slide or master ' it's on; this way you don't have to worry which With oShp.Parent.Shapes("Target").TextFrame.TextRange .Text = oShp.Name DoEvents End With End Sub
Make each shape's .Name the text you want to display in the box and you're in business. If you need to use long names, I wouldn't rely on this, but there's another fairly simple way of doing it with .Tags.
> Frustrating, as I need all these buttons on master slides as my project > requires around 100 slides between several linked presentations. So you can [quoted text clipped - 137 lines] > > PPTools: www.pptools.com > > ================================================ ----------------------------------------- Steve Rindsberg, PPT MVP PPT FAQ: www.pptfaq.com PPTools: www.pptools.com ================================================
pfx - 03 Jun 2006 18:03 GMT To Steve, David, John and Luc, What can I say? I am indebted to you all for working with me and getting me over the line with a fully functioning mouseover action in PowerPoint, just like they have in Dreamweaver and Flash! In the end Steve provided a simple piece of VB script that works both on normal presentation and master slides. The renaming 'addin' just topped it off by swapping changeable PowerPoint shape references to meaningful names. It makes you wonder why Microsoft just sits on its hands with this application when, with a little thought, it could really be a very powerful piece of multimedia software. Although I have to admit that latest version is vastly improved on previous iterations. I really feel privlidged to have had all of your assistance in this. Having this action with greatly simplify and enhance my presentations and will do away with a lot of those hidden workarounds that you often have to devise to 'fake' a certain look. I also have to admit I will enjoy watching my colleagues trying to figure out how in the heck that mouseover works as they are not even aware of the VB backdoor. Once again, my sincere appreciation to you all,
Chris
PS I'm going to have to get a copy of David's book.
> > (I've posted this in two topic areas as both relate to the same project. This > > is probably the most appropriate place to carry this converstaion forward) [quoted text clipped - 235 lines] > PPTools: www.pptools.com > ================================================ Steve Rindsberg - 03 Jun 2006 19:35 GMT > What can I say? You said it. <g> And you're very welcome.
> It makes you wonder why Microsoft just sits on its hands with this > application when, with a little thought, it could really be a very powerful > piece of multimedia software. Well, it's like this. There's no way they could build in all the features that you want, and that I want and that Bill wants and that every otherbody who uses it wants.
So instead they toss in this nifty Erector Set thingie called VBA so we can build our own, or other people can custom-build stuff for us. It's more work than just getting what we want out of the box in the first place, but the odds of getting what we want, one way or the other, are MUCH better.
|
|
|