如何在PowerPoint中创建弹出窗口

PowerPoint can pop up an image when you hover your pointer over a thumbnail image. This lets you keep a nice, clean slide, but also show your audience more information when you want to.

将指针悬停在缩略图上时,PowerPoint会弹出一个图像。 这样一来,您可以保持幻灯片整洁,美观,并在需要时向观众显示更多信息。

将鼠标悬停在缩略图上时如何弹出更大的图像 (How to Pop Up a Bigger Image When You Hover Over a Thumbnail)

In this example, we have four thumbnail images, and we want to set up a hover effect that shows a pop-up of a larger image when you mouse over each of the thumbnail images.

在此示例中,我们有四个缩略图图像,我们想要设置一个悬停效果,当您将鼠标悬停在每个缩略图图像上时,该效果会显示较大图像的弹出窗口。

First, on a new slide, insert your thumbnail image by heading to Insert > Pictures. The thumbnail image is whatever small image you want to use as a thumbnail on your slide—not a special kind of image.

首先,在新幻灯片上,通过转到“插入”>“图片”来插入缩略图。 缩略图图像是您要用作幻灯片缩略图的任何小图像,而不是特殊的图像。

Here’s an example of our slide with four thumbnail images inserted.

这是插入了四个缩略图的幻灯片示例。

Next, you’ll need to add a new slide for each of the popups for the larger images. Right-click on your first slide’s thumbnail, and then select “New Slide.” Repeat this step for any additional slides needed for each of your larger images.

接下来,您需要为较大图像的每个弹出窗口添加一个新幻灯片。 右键单击第一张幻灯片的缩略图,然后选择“新幻灯片”。 对每个较大的图像都需要的其他幻灯片重复此步骤。

In this example, we added four new slides.

在此示例中,我们添加了四张新幻灯片。

Next, you’ll create the first popup. On slide 2, delete any placeholders added when you inserted the new slide. To delete a placeholder, right-click on the edge of the placeholder and then click “Cut.” You can also select the placeholder and then hit the Delete key.

接下来,您将创建第一个弹出窗口。 在幻灯片2上,删除插入新幻灯片时添加的所有占位符。 要删除占位符,请右键单击占位符的边缘,然后单击“剪切”。 您也可以选择占位符,然后按Delete键。

Next, insert the large version of your first image (for your first popup). If there is a placeholder on your slide, click on the “Pictures” icon to insert an image. Alternately, if your new slide doesn’t contain a placeholder, you can click “Pictures” from the Insert tab.

接下来,插入较大版本的第一个图像(用于第一个弹出窗口)。 如果幻灯片上有占位符,请单击“图片”图标以插入图像。 或者,如果您的新幻灯片不包含占位符,则可以从“插入”选项卡中单击“图片”。

Select the larger image version of the thumbnail and then click “Insert.”

选择缩略图的较大图像版本,然后单击“插入”。

Once your image is inserted, adjust the size of the image on the slide as needed.

插入图像后,根据需要调整幻灯片上图像的大小。

Next, let’s add a border on the image. Double click on the image to activate the Format tab. From the Format tab, click the border of your choice. In this example, we’re using the “Simple Frame, White” option.

接下来,让我们在图像上添加边框。 双击图像以激活格式选项卡。 在格式选项卡上,单击您选择的边框。 在此示例中,我们使用“白色简单框架”选项。

Repeat the steps to add a large version of any other thumbnail images you’re using. Here, we’ve added all four larger images for our example.

重复这些步骤以添加正在使用的其他缩略图的大版本。 在这里,我们为示例添加了所有四个较大的图像。

Now, return to the slide with your thumbnail images and then click to select the first thumbnail. To create the popup image effect, you’ll add an action to the thumbnail. From the Insert tab, click “Action.”

现在,返回带有缩略图的幻灯片,然后单击以选择第一个缩略图。 要创建弹出图像效果,您需要在缩略图上添加一个动作。 在“插入”标签中,点击“操作”。

In the Action Settings dialog box, click the “Mouse Over” tab. Select “Hyperlink to:” and then select the slide containing the larger image for the thumbnail (Slide 2 in our case). Click “OK” when you’re done.

在“动作设置”对话框中,单击“鼠标悬停”选项卡。 选择“超链接到:”,然后为缩略图选择包含较大图像的幻灯片(在本例中为幻灯片2)。 完成后,单击“确定”。

Repeat the same steps for any additional thumbnails, inserting a mouse over action to the corresponding slide which contains the larger image, respectively.

对其他缩略图重复相同的步骤,将鼠标悬停在包含较大图像的相应幻灯片上。

To see the hover effect in action, from the Slide Show tab, click “From Current Slide” or press Shift+F5 on your keyboard.

要查看实际的悬停效果,请从“幻灯片放映”选项卡中,单击“来自当前幻灯片”或按键盘上的Shift + F5。

When you hover over the first thumbnail image, a larger image displays. However, notice there is no way to return to the thumbnails. You’ll need to press the Esc key to return.

将鼠标悬停在第一张缩略图上时,将显示较大的图像。 但是,请注意,无法返回到缩略图。 您需要按Esc键返回。

翻译自: https://www.howtogeek.com/397911/how-to-create-a-pop-up-in-powerpoint/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在 C++ 添加弹出菜单到 PowerPoint,你可以使用 Microsoft Office 提供的 COM 接口。下面是一些基本步骤: 1. 首先,你需要确保已经安装了 PowerPoint 和 Microsoft Office 开发工具包。 2. 在 Visual Studio 创建一个新的 C++ 项目,并将 Microsoft Office 类型库添加到项目。 3. 创建一个 PowerPoint 应用程序对象,并打开一个演示文稿。 ``` // 创建 PowerPoint 应用程序对象 _ApplicationPtr pApp("PowerPoint.Application"); // 打开演示文稿 PresentationsPtr pPres = pApp->Presentations; PresentationPtr pPresentation = pPres->Open(_T("path/to/presentation.pptx")); ``` 4. 创建一个弹出菜单控件,并将其添加到 PowerPoint 应用程序的菜单栏。 ``` // 创建一个弹出菜单控件 CommandBarPopupPtr pPopup = pApp->CommandBars->ActiveMenuBar->Controls->Add( msoControlPopup, vtMissing, vtMissing, vtMissing, vtMissing); // 设置弹出菜单的名称和标签 pPopup->Caption = _T("My Popup Menu"); pPopup->Tag = _T("MyPopupTag"); // 添加菜单项 CommandBarButtonPtr pButton = pPopup->Controls->Add( msoControlButton, vtMissing, vtMissing, vtMissing, vtMissing); // 设置菜单项的名称、标签和单击事件 pButton->Caption = _T("My Menu Item"); pButton->Tag = _T("MyMenuItemTag"); pButton->OnAction = _T("MyMenuItem_Click"); ``` 5. 在代码添加菜单项的单击事件处理程序。 ``` void __stdcall MyMenuItem_Click(IDispatch* /*Ctrl*/, VARIANT_BOOL* /*CancelDefault*/) { // 处理菜单项单击事件 } ``` 6. 最后,记得在程序结束时释放 PowerPoint 应用程序对象和其他 COM 对象。 ``` // 关闭演示文稿并退出 PowerPoint 应用程序 pPresentation->Close(); pApp->Quit(); // 释放对象 pButton = nullptr; pPopup = nullptr; pPresentation = nullptr; pPres = nullptr; pApp = nullptr; ``` 这样,你就可以在 C++ 使用 COM 接口添加弹出菜单到 PowerPoint 了。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值