成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

ppt如何做拖動(dòng)互動(dòng)-創(chuàng)新互聯(lián)

這篇文章主要為大家展示了“ppt如何做拖動(dòng)互動(dòng)”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“ppt如何做拖動(dòng)互動(dòng)”這篇文章吧。

成都創(chuàng)新互聯(lián)網(wǎng)站建設(shè)公司一直秉承“誠(chéng)信做人,踏實(shí)做事”的原則,不欺瞞客戶,是我們最起碼的底線! 以服務(wù)為基礎(chǔ),以質(zhì)量求生存,以技術(shù)求發(fā)展,成交一個(gè)客戶多一個(gè)朋友!專注中小微企業(yè)官網(wǎng)定制,成都網(wǎng)站制作、成都網(wǎng)站建設(shè),塑造企業(yè)網(wǎng)絡(luò)形象打造互聯(lián)網(wǎng)企業(yè)效應(yīng)。

一、普通視圖模式

在普通視圖模式(不是全屏模式)下,即在編輯狀態(tài)下,自然能實(shí)現(xiàn)圖片的拖動(dòng)功能。

優(yōu)點(diǎn):簡(jiǎn)單易行。

缺點(diǎn):1.窗口較小,可視性不好;2.自定義動(dòng)畫效果無(wú)法實(shí)現(xiàn)。

二、宏

建議將宏的安全級(jí)別設(shè)置為低。

1、新建一個(gè)ppt空白文檔。

2、點(diǎn)擊菜單:“工具——宏——宏”,出現(xiàn)對(duì)話框。

3、對(duì)話框中“宏名”隨意寫個(gè),比如:move,再點(diǎn)“創(chuàng)建”,就進(jìn)入代碼模式。

4、刪去所有的代碼,把下面的代碼全拷貝進(jìn)去。

Option Explicit
Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer
Private Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Long, ByVal yPoint As Long) As Long
Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
Private Declare Function GetCursorPos Lib "user32" (lpPoint As PointAPI) As Long
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
Public Declare Function MonitorFromPoint Lib "user32.dll" (ByVal x As Long, ByVal y As Long, ByVal dwFlags As Long) As Long
Private Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long
Private Const SM_SCREENX = 0
Private Const SM_SCREENY = 1
Private Const sigProc = "Drag & Drop"
Public Const VK_SHIFT = &H10
Public Const VK_CTRL = &H11
Public Const VK_ALT = &H12
Private Type PointAPI
    x As Long
    y As Long
End Type
Public Type RECT
    Left As Long
    Top As Long
    Right As Long
    Bottom As Long
End Type
Public mPoint As PointAPI, dPoint As PointAPI
Public ActiveShape As Shape
Dim dragMode As Boolean
Dim dx As Double, dy As Double
Sub DragandDrop(sh As Shape)
dragMode = Not dragMode
If dragMode Then Drag sh
End Sub
Private Sub Drag(sh As Shape)
Dim i As Integer, sx As Integer, sy As Integer
Dim mWnd As Long, WR As RECT
dx = GetSystemMetrics(SM_SCREENX): dPoint.x = dx
dy = GetSystemMetrics(SM_SCREENY): dPoint.y = dy
GetCursorPos mPoint
With ActivePresentation.SlideShowWindow
    mWnd = WindowFromPoint(mPoint.x, mPoint.y)
    GetWindowRect mWnd, WR
    sx = WR.Left
    sy = WR.Top
    dx = (WR.Right - WR.Left) / ActivePresentation.PageSetup.SlideWidth
    dy = (WR.Bottom - WR.Top) / ActivePresentation.PageSetup.SlideHeight
End With
If dx > dy Then
    sx = sx + (dx - dy) * ActivePresentation.PageSetup.SlideWidth / 2
    dx = dy
End If
If dy > dx Then
    sy = sy + (dy - dx) * ActivePresentation.PageSetup.SlideHeight / 2
    dy = dx
End If
While dragMode
    GetCursorPos mPoint
    sh.Left = (mPoint.x - sx) / dx - sh.Width / 2
    sh.Top = (mPoint.y - sy) / dy - sh.Height / 2
    DoEvents
    i = i + 1: If i > 2000 Then dragMode = False: Exit Sub
Wend
End Sub

5、點(diǎn)擊保存后,關(guān)閉代碼模式,回到ppt設(shè)計(jì)頁(yè)面。在你需要拖動(dòng)的圖片上點(diǎn)右鍵,選擇“動(dòng)作設(shè)置——單擊鼠標(biāo)——運(yùn)行宏——確定”。

6、放映幻燈片,看看效果吧。

優(yōu)點(diǎn):可視性強(qiáng)。

缺點(diǎn):對(duì)于PPT新手來(lái)說(shuō)不易操作。

以上是“ppt如何做拖動(dòng)互動(dòng)”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!

文章標(biāo)題:ppt如何做拖動(dòng)互動(dòng)-創(chuàng)新互聯(lián)
文章轉(zhuǎn)載:http://jinyejixie.com/article38/djeipp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站維護(hù)網(wǎng)站改版、標(biāo)簽優(yōu)化、移動(dòng)網(wǎng)站建設(shè)動(dòng)態(tài)網(wǎng)站、Google

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)
姜堰市| 河津市| 安徽省| 德江县| 松桃| 廉江市| 江川县| 天水市| 内乡县| 翁源县| 武冈市| 盐亭县| 宁阳县| 寿光市| 泊头市| 萨嘎县| 宣恩县| 滦南县| 邛崃市| 彰化县| 南城县| 子洲县| 莒南县| 广安市| 山阳县| 邳州市| 孝昌县| 临沧市| 双柏县| 泸西县| 班戈县| 六枝特区| 赣州市| 三亚市| 南岸区| 鄂州市| 平顶山市| 广州市| 湖口县| 赤城县| 波密县|