輸送機(jī)-TGSS-50型水平刮板輸送機(jī)- 機(jī)頭段設(shè)計(jì)
輸送機(jī)-TGSS-50型水平刮板輸送機(jī)- 機(jī)頭段設(shè)計(jì),輸送機(jī)-TGSS-50型水平刮板輸送機(jī)-,機(jī)頭段設(shè)計(jì),輸送,tgss,50,水平,機(jī)頭,設(shè)計(jì)
畢業(yè)設(shè)計(jì)(論文)外文資料翻譯
題 目: ActiveX and VBA Reference
院系名稱: 專業(yè)班級(jí):
學(xué)生姓名: 學(xué) 號(hào):
指導(dǎo)教師: 教師職稱:
起止日期: 地 點(diǎn):
BeginShortcutMenuOSnap 事件
用戶在圖形窗口上按鼠標(biāo)右鍵后,以及在快捷菜單以osnap模式出現(xiàn)之前被觸發(fā)。
See Also | Example
用法:
object.BeginShortcutMenuGrip(ShortcutMenu)
對(duì)象:
Document 對(duì)象
對(duì)象表達(dá)式,其結(jié)果為有效的容器對(duì)象,此處必須為文檔對(duì)象(document)。
ShortcutMenu
快捷菜單
PopupMenu對(duì)象:通過操作按鈕來(lái)輸入/輸出
快捷菜單即將顯示
說明:
這個(gè)事件允許你在它顯示之前修改快捷菜單。在修改快捷菜單時(shí),通過事件的按鈕編輯PopupMenu對(duì)象。這種相同的PopupMenu對(duì)象也因?yàn)楫?dāng)前的快捷菜單正在顯示而不能夠彈出。使用這個(gè)EndShortcutMenu事件利用快捷菜單執(zhí)行清除工作。
這些事件將被激活,在所有的快捷菜單的要素包括任意ObjectARX命令發(fā)生后
當(dāng)模式對(duì)話框顯示時(shí)不會(huì)觸發(fā)任何事件
參見:
方法,屬性,事件:
BeginShortcutMenuCommand
BeginShortcutMenuDefault
BeginShortcutMenuEdit
BeginRightClick
ActiveX 和 VBA開發(fā)指導(dǎo):
“使用事件”
例程:
Private Sub AcadDocument_BeginShortcutMenuOSnap(ShortcutMenu As AutoCAD.IAcadPopupMenu)
本例程演示當(dāng)在osnap模式下時(shí)立即截取一個(gè)快捷菜單
MsgBox “你剛才在osnap模式下激活一個(gè)快捷菜單”
Deactivate 事件
當(dāng)圖形窗口釋放時(shí)被觸發(fā)
See Also | Example
用法:
object.Deactivate()
對(duì)象:
Document對(duì)象
對(duì)象表達(dá)式,其結(jié)果為有效的容器對(duì)象,此處必須為文檔對(duì)象(document)
說明:
當(dāng)模式對(duì)話框顯示時(shí)不會(huì)觸發(fā)任何事件
參見 :
方法,屬性,事件:
Activate
ActiveX 和 VBA開發(fā)指導(dǎo):
“使用事件”
例程:
Private Sub AcadDocument_Deactivate()
本例程演示截取圖形激活事件
當(dāng)圖形不集中時(shí)這個(gè)事件會(huì)被激活
激活示例程序:打開兩個(gè)圖形窗口并從一個(gè)圖形窗口切換到另一個(gè)圖形窗口
MsgBox “你剛才激活了一個(gè)圖形!”
End Sub
EndCommand event
在命令執(zhí)行完成后立即被觸發(fā)。
See Also | Example:
用法:
object.EndCommand(CommandName)
對(duì)象:
Application
對(duì)象表達(dá)式,其結(jié)果為有效的容器對(duì)象,此處必須為文檔對(duì)象(document)。
CommandName
String
文件被打開
發(fā)出的命令的名字。
說明:
這個(gè)EndCommand事件緊跟著BeginCommand事件到AutoCAD完成正在執(zhí)行的命令之后。如果使用者沒有取消那個(gè)命令,結(jié)束命令就不會(huì)被觸發(fā)。
這個(gè)開始命令事件被觸發(fā)為任一基本AutoCAD命令,或任一經(jīng)由ObjectARX申請(qǐng)登記在AutoCAD指令堆棧上,或視圖的 LISP vlax-add-cmd功能 。任何正常的defun'd C將被觸發(fā):因?yàn)樗荒軓拿疃褩V酗@示出來(lái),所以即使你激發(fā)它,它也不能完全的發(fā)揮功能,。如果你在執(zhí)行時(shí)需要LISP命令被識(shí)別出來(lái),你需要用視圖的 LISP vlax-add-cmd功能去正確從AutoCAD命令堆棧中激發(fā)出來(lái)。
如果你沒有對(duì)一個(gè)AutoCAD命令進(jìn)行定義那么你就利用LISP命令對(duì)其重新定義,通常AutoCAD 的命令只有在它們被觸發(fā)時(shí)BeginCommand才被激活。比如("LINE"命令……)。
AutoCAD命令成組的儲(chǔ)存在命令堆棧里。一個(gè)瞬間命令堆棧在創(chuàng)建per AutoCAD期間。這些堆棧由的基本命令組成,還有任意你加進(jìn)去的命令。
對(duì)話框顯示時(shí)不會(huì)觸發(fā)任何事件
參見:
方法,屬性,事件:
BeginCommand
ActiveX 和VBA開發(fā)指導(dǎo)
“使用事件”
例程:
Private Sub AcadDocument_EndCommand(ByVal CommandName As String)
'本例程演示截取圖形EndCommand事件
'當(dāng)圖形收到任一與本事件有關(guān)的命令時(shí)此事件被激活。
激活本例程事件:在繪圖區(qū)點(diǎn)擊任意的命令不管是直線命令,VBA, ACAD菜單,ACAD工具欄還是LISP之中的。當(dāng)這個(gè)命令完成后,這個(gè)事件將會(huì)被激活。
使用周期變化的“CommandName”確定哪個(gè)命令剛完成。
MsgBox“一個(gè)圖形已經(jīng)完”成& CommandName & “命令”
End Sub
EndLISP event
在LISP表達(dá)式執(zhí)行完成后立即被觸發(fā)
See Also | Example
用法:
object.EndLISP()
對(duì)象:
Application object, Document object
對(duì)象表達(dá)式,其結(jié)果為有效的容器對(duì)象,此處必須為文檔對(duì)象(document)
說明:
這個(gè)事件將會(huì)被觸發(fā),在LISP表達(dá)實(shí)執(zhí)行完成后,或撤消對(duì)LISP表達(dá)式的執(zhí)行后。
“對(duì)話框顯示時(shí)不會(huì)觸發(fā)任何事件”
參見:
方法,屬性,事件:
BeginLISP
ActiveX 和VBA開發(fā)指導(dǎo)
“使用事件”
例程:
Private Sub AcadDocument_EndLisp()
'本例程演示截取圖形BeginLisp事件
本事件當(dāng)完成對(duì)一圖形的LISP表達(dá)式的運(yùn)行時(shí)被激活
激活本例程:開始對(duì)LISP表達(dá)式求值并等著完成求值
MsgBox “一個(gè)LISP表達(dá)式已經(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
收藏