輸送機-TGSS-50型水平刮板輸送機- 機頭段設(shè)計,輸送機-TGSS-50型水平刮板輸送機-,機頭段設(shè)計,輸送,tgss,50,水平,機頭,設(shè)計
畢業(yè)設(shè)計(論文)外文資料翻譯
題 目: ActiveX and VBA Reference
院系名稱: 專業(yè)班級:
學(xué)生姓名: 學(xué) 號:
指導(dǎo)教師: 教師職稱:
起止日期: 地 點:
BeginShortcutMenuOSnap 事件
用戶在圖形窗口上按鼠標(biāo)右鍵后,以及在快捷菜單以osnap模式出現(xiàn)之前被觸發(fā)。
See Also | Example
用法:
object.BeginShortcutMenuGrip(ShortcutMenu)
對象:
Document 對象
對象表達式,其結(jié)果為有效的容器對象,此處必須為文檔對象(document)。
ShortcutMenu
快捷菜單
PopupMenu對象:通過操作按鈕來輸入/輸出
快捷菜單即將顯示
說明:
這個事件允許你在它顯示之前修改快捷菜單。在修改快捷菜單時,通過事件的按鈕編輯PopupMenu對象。這種相同的PopupMenu對象也因為當(dāng)前的快捷菜單正在顯示而不能夠彈出。使用這個EndShortcutMenu事件利用快捷菜單執(zhí)行清除工作。
這些事件將被激活,在所有的快捷菜單的要素包括任意ObjectARX命令發(fā)生后
當(dāng)模式對話框顯示時不會觸發(fā)任何事件
參見:
方法,屬性,事件:
BeginShortcutMenuCommand
BeginShortcutMenuDefault
BeginShortcutMenuEdit
BeginRightClick
ActiveX 和 VBA開發(fā)指導(dǎo):
“使用事件”
例程:
Private Sub AcadDocument_BeginShortcutMenuOSnap(ShortcutMenu As AutoCAD.IAcadPopupMenu)
本例程演示當(dāng)在osnap模式下時立即截取一個快捷菜單
MsgBox “你剛才在osnap模式下激活一個快捷菜單”
Deactivate 事件
當(dāng)圖形窗口釋放時被觸發(fā)
See Also | Example
用法:
object.Deactivate()
對象:
Document對象
對象表達式,其結(jié)果為有效的容器對象,此處必須為文檔對象(document)
說明:
當(dāng)模式對話框顯示時不會觸發(fā)任何事件
參見 :
方法,屬性,事件:
Activate
ActiveX 和 VBA開發(fā)指導(dǎo):
“使用事件”
例程:
Private Sub AcadDocument_Deactivate()
本例程演示截取圖形激活事件
當(dāng)圖形不集中時這個事件會被激活
激活示例程序:打開兩個圖形窗口并從一個圖形窗口切換到另一個圖形窗口
MsgBox “你剛才激活了一個圖形!”
End Sub
EndCommand event
在命令執(zhí)行完成后立即被觸發(fā)。
See Also | Example:
用法:
object.EndCommand(CommandName)
對象:
Application
對象表達式,其結(jié)果為有效的容器對象,此處必須為文檔對象(document)。
CommandName
String
文件被打開
發(fā)出的命令的名字。
說明:
這個EndCommand事件緊跟著BeginCommand事件到AutoCAD完成正在執(zhí)行的命令之后。如果使用者沒有取消那個命令,結(jié)束命令就不會被觸發(fā)。
這個開始命令事件被觸發(fā)為任一基本AutoCAD命令,或任一經(jīng)由ObjectARX申請登記在AutoCAD指令堆棧上,或視圖的 LISP vlax-add-cmd功能 。任何正常的defun'd C將被觸發(fā):因為它不能從命令堆棧中顯示出來,所以即使你激發(fā)它,它也不能完全的發(fā)揮功能,。如果你在執(zhí)行時需要LISP命令被識別出來,你需要用視圖的 LISP vlax-add-cmd功能去正確從AutoCAD命令堆棧中激發(fā)出來。
如果你沒有對一個AutoCAD命令進行定義那么你就利用LISP命令對其重新定義,通常AutoCAD 的命令只有在它們被觸發(fā)時BeginCommand才被激活。比如("LINE"命令……)。
AutoCAD命令成組的儲存在命令堆棧里。一個瞬間命令堆棧在創(chuàng)建per AutoCAD期間。這些堆棧由的基本命令組成,還有任意你加進去的命令。
對話框顯示時不會觸發(fā)任何事件
參見:
方法,屬性,事件:
BeginCommand
ActiveX 和VBA開發(fā)指導(dǎo)
“使用事件”
例程:
Private Sub AcadDocument_EndCommand(ByVal CommandName As String)
'本例程演示截取圖形EndCommand事件
'當(dāng)圖形收到任一與本事件有關(guān)的命令時此事件被激活。
激活本例程事件:在繪圖區(qū)點擊任意的命令不管是直線命令,VBA, ACAD菜單,ACAD工具欄還是LISP之中的。當(dāng)這個命令完成后,這個事件將會被激活。
使用周期變化的“CommandName”確定哪個命令剛完成。
MsgBox“一個圖形已經(jīng)完”成& CommandName & “命令”
End Sub
EndLISP event
在LISP表達式執(zhí)行完成后立即被觸發(fā)
See Also | Example
用法:
object.EndLISP()
對象:
Application object, Document object
對象表達式,其結(jié)果為有效的容器對象,此處必須為文檔對象(document)
說明:
這個事件將會被觸發(fā),在LISP表達實執(zhí)行完成后,或撤消對LISP表達式的執(zhí)行后。
“對話框顯示時不會觸發(fā)任何事件”
參見:
方法,屬性,事件:
BeginLISP
ActiveX 和VBA開發(fā)指導(dǎo)
“使用事件”
例程:
Private Sub AcadDocument_EndLisp()
'本例程演示截取圖形BeginLisp事件
本事件當(dāng)完成對一圖形的LISP表達式的運行時被激活
激活本例程:開始對LISP表達式求值并等著完成求值
MsgBox “一個LISP表達式已經(jīng)完成求值!”
End Sub
BeginShortcutMenuOSnap event
Triggered after the user right-clicks on the drawing window, and before the shortcut menu appears in osnap mode.
See Also | Example
Signature
object.BeginShortcutMenuGrip(ShortcutMenu)
object
Document object
An object expression that evaluates to a valid container object. In this case, the only valid container is a document.
ShortcutMenu
PopupMenu object; input/output from the handler
The shortcut menu about to be displayed.
Remarks
This event allows you to make changes to the shortcut menu before it is displayed. To make changes to the shortcut menu, edit the PopupMenu object that is passed in to your handler from the event. This same PopupMenu object is passed out as the current shortcut menu. Use the EndShortcutMenu event to perform any cleanup work on the shortcut menu.
This event is triggered after all shortcut menu elements, including any ObjectARX command additions, have occurred.
No events will be fired while a modal dialog is being displayed.
?See Also
Methods, Properties, and Events:
BeginShortcutMenuCommand
BeginShortcutMenuDefault
BeginShortcutMenuEdit
BeginRightClick
ActiveX and VBA Developer's Guide:
"Use Events"
Example
Private Sub AcadDocument_BeginShortcutMenuOSnap(ShortcutMenu As AutoCAD.IAcadPopupMenu)
' This example intercepts a shortcut menu start while you are in the osnap mode.
'
MsgBox "You have just initiated a shortcut menu in osnap mode!"
End Sub
Deactivate event
Triggered when the drawing window is deactivated.
See Also | Example
Signature
object.Deactivate()
object
Document object
An object expression that evaluates to a valid container object. In this case, the only valid container is a document.
Remarks
No events will be fired while a modal dialog is being displayed.
?See Also
Methods, Properties, and Events:
Activate
ActiveX and VBA Developer's Guide:
"Use Events
Example
Private Sub AcadDocument_Deactivate()
' This example intercepts a drawing DeActivate event.
'
' This event is triggered when a drawing window looses focus.
'
' To trigger this example event: Open two drawings and switch from
' one drawing window to another
MsgBox "You have just deactivated a drawing!"
End Sub
EndCommand event
Triggered immediately after a command completes.
See Also | Example
Signature
object.EndCommand(CommandName)
object
Application
An object expression that evaluates to a valid container object. In this case, the only valid container is the application.
CommandName
String
The name of the command that was issued.
Remarks
The EndCommand event follows the BeginCommand event after AutoCAD completes processing the command. If the user cancels out of the command, the EndCommand event will not be triggered.
The BeginCommand event will be fired for any basic AutoCAD command, or any command registered on the AutoCAD command stack via an ObjectARX application, or the Visual LISP vlax-add-cmd function. It will not be fired for any normally defun'd C: LISP function because it is not exposed to the command stack, even though you execute it from the AutoCAD command Line. If you need LISP commands to be recognized when they execute, you will need to use the Visual LISP vlax-add-cmd function to register the command correctly to the AutoCAD command stack.
If you undefine an AutoCAD command and then redefine it via a LISP defun, the BeginCommand event may not be triggered until an actual AutoCAD command is called; for example, (command "_.LINE" ...).
AutoCAD commands are stored in groups in the command stack. One instance of the command stack is created per AutoCAD session. This stack consists of the native AutoCAD commands, as well as any custom commands you add to it.
No events will be fired while a modal dialog is being displayed.
?See Also
Methods, Properties, and Events:
BeginCommand
ActiveX and VBA Developer's Guide:
"Use Events
Example
Private Sub AcadDocument_EndCommand(ByVal CommandName As String)
' This example intercepts a drawing EndCommand event.
'
' This event is triggered when a drawing receives
' any command compatible with this event.
'
' To trigger this example event: Issue any command to an open drawing from
' either the command line, VBA, the ACAD menus, the ACAD toolbars, or LISP.
' When the command is finished, this event will be triggered.
' Use the "CommandName" variable to determine which command just finished
MsgBox "A drawing has just finished a " & CommandName & " command."
End Sub
EndLISP event
Triggered upon completion of evaluating a LISP expression.
See Also | Example
Signature
object.EndLISP()
object
Application object, Document object
An object expression that evaluates to a valid container object. In this case, the only valid containers are the application and a document.
Remarks
This event will occur after either a normal termination of the LISP evaluation, or after a cancellation of the LISP evaluation.
No events will be fired while a modal dialog is being displayed.
?See Also
Methods, Properties, and Events:
BeginLISP
ActiveX and VBA Developer's Guide:
"Use Events
Example
Private Sub AcadDocument_EndLisp()
' This example intercepts a drawing BeginLisp event.
'
' This event is triggered when a drawing finishes
' a the evaluation of a LISP expression.
'
' To trigger this example event: Start the evaluation of a LISP expression and
' wait for it to finish being evaluated
MsgBox "A LISP expression has just finished being evaluated!"
End Sub
鏈接地址:http://m.appdesigncorp.com/p-2674217.html