图形转化网页编辑外文文献翻译中英文翻译外文翻译.docx

上传人:b****7 文档编号:8879592 上传时间:2023-02-02 格式:DOCX 页数:9 大小:28.30KB
下载 相关 举报
图形转化网页编辑外文文献翻译中英文翻译外文翻译.docx_第1页
第1页 / 共9页
图形转化网页编辑外文文献翻译中英文翻译外文翻译.docx_第2页
第2页 / 共9页
图形转化网页编辑外文文献翻译中英文翻译外文翻译.docx_第3页
第3页 / 共9页
图形转化网页编辑外文文献翻译中英文翻译外文翻译.docx_第4页
第4页 / 共9页
图形转化网页编辑外文文献翻译中英文翻译外文翻译.docx_第5页
第5页 / 共9页
点击查看更多>>
下载资源
资源描述

图形转化网页编辑外文文献翻译中英文翻译外文翻译.docx

《图形转化网页编辑外文文献翻译中英文翻译外文翻译.docx》由会员分享,可在线阅读,更多相关《图形转化网页编辑外文文献翻译中英文翻译外文翻译.docx(9页珍藏版)》请在冰豆网上搜索。

图形转化网页编辑外文文献翻译中英文翻译外文翻译.docx

图形转化网页编辑外文文献翻译中英文翻译外文翻译

毕业设计(论文)外文资料翻译

题目:

ActiveXandVBAReference

院系名称:

专业班级:

学生姓名:

学号:

指导教师:

教师职称:

起止日期:

地点:

 

BeginShortcutMenuOSnap事件

用户在图形窗口上按鼠标右键后,以及在快捷菜单以osnap模式出现之前被触发。

SeeAlso|Example

用法:

object.BeginShortcutMenuGrip(ShortcutMenu)

对象:

Document对象

对象表达式,其结果为有效的容器对象,此处必须为文档对象(document)。

ShortcutMenu

快捷菜单

PopupMenu对象:

通过操作按钮来输入/输出

快捷菜单即将显示

说明:

这个事件允许你在它显示之前修改快捷菜单。

在修改快捷菜单时,通过事件的按钮编辑PopupMenu对象。

这种相同的PopupMenu对象也因为当前的快捷菜单正在显示而不能够弹出。

使用这个EndShortcutMenu事件利用快捷菜单执行清除工作。

这些事件将被激活,在所有的快捷菜单的要素包括任意ObjectARX命令发生后

当模式对话框显示时不会触发任何事件

参见:

方法,属性,事件:

BeginShortcutMenuCommand

BeginShortcutMenuDefault

BeginShortcutMenuEdit

BeginRightClick

ActiveX和VBA开发指导:

“使用事件”

例程:

PrivateSubAcadDocument_BeginShortcutMenuOSnap(ShortcutMenuAsAutoCAD.IAcadPopupMenu)

本例程演示当在osnap模式下时立即截取一个快捷菜单

MsgBox“你刚才在osnap模式下激活一个快捷菜单”

Deactivate事件

当图形窗口释放时被触发

SeeAlso|Example

用法:

object.Deactivate()

对象:

Document对象

对象表达式,其结果为有效的容器对象,此处必须为文档对象(document)

说明:

当模式对话框显示时不会触发任何事件

参见:

方法,属性,事件:

Activate

ActiveX和VBA开发指导:

“使用事件”

例程:

PrivateSubAcadDocument_Deactivate()

本例程演示截取图形激活事件

当图形不集中时这个事件会被激活

激活示例程序:

打开两个图形窗口并从一个图形窗口切换到另一个图形窗口

MsgBox“你刚才激活了一个图形!

EndSub

EndCommandevent

在命令执行完成后立即被触发。

SeeAlso|Example:

用法:

object.EndCommand(CommandName)

对象:

Application

对象表达式,其结果为有效的容器对象,此处必须为文档对象(document)。

CommandName

String

文件被打开

发出的命令的名字。

说明:

这个EndCommand事件紧跟着BeginCommand事件到AutoCAD完成正在执行的命令之后。

如果使用者没有取消那个命令,结束命令就不会被触发。

这个开始命令事件被触发为任一基本AutoCAD命令,或任一经由ObjectARX申请登记在AutoCAD指令堆栈上,或视图的LISPvlax-add-cmd功能。

任何正常的defun'dC将被触发:

因为它不能从命令堆栈中显示出来,所以即使你激发它,它也不能完全的发挥功能,。

如果你在执行时需要LISP命令被识别出来,你需要用视图的LISPvlax-add-cmd功能去正确从AutoCAD命令堆栈中激发出来。

如果你没有对一个AutoCAD命令进行定义那么你就利用LISP命令对其重新定义,通常AutoCAD的命令只有在它们被触发时BeginCommand才被激活。

比如("LINE"命令……)。

AutoCAD命令成组的储存在命令堆栈里。

一个瞬间命令堆栈在创建perAutoCAD期间。

这些堆栈由的基本命令组成,还有任意你加进去的命令。

对话框显示时不会触发任何事件

参见:

方法,属性,事件:

BeginCommand

ActiveX和VBA开发指导

“使用事件”

例程:

PrivateSubAcadDocument_EndCommand(ByValCommandNameAsString)

'本例程演示截取图形EndCommand事件

'当图形收到任一与本事件有关的命令时此事件被激活。

激活本例程事件:

在绘图区点击任意的命令不管是直线命令,VBA,ACAD菜单,ACAD工具栏还是LISP之中的。

当这个命令完成后,这个事件将会被激活。

使用周期变化的“CommandName”确定哪个命令刚完成。

MsgBox“一个图形已经完”成&CommandName&“命令”

EndSub

EndLISPevent

在LISP表达式执行完成后立即被触发

SeeAlso|Example

用法:

object.EndLISP()

对象:

Applicationobject,Documentobject

对象表达式,其结果为有效的容器对象,此处必须为文档对象(document)

说明:

这个事件将会被触发,在LISP表达实执行完成后,或撤消对LISP表达式的执行后。

“对话框显示时不会触发任何事件”

参见:

方法,属性,事件:

BeginLISP

ActiveX和VBA开发指导

“使用事件”

例程:

PrivateSubAcadDocument_EndLisp()

'本例程演示截取图形BeginLisp事件

本事件当完成对一图形的LISP表达式的运行时被激活

激活本例程:

开始对LISP表达式求值并等着完成求值

MsgBox“一个LISP表达式已经完成求值!

EndSub

BeginShortcutMenuOSnapevent

Triggeredaftertheuserright-clicksonthedrawingwindow,andbeforetheshortcutmenuappearsinosnapmode.

SeeAlso|Example

Signature

object.BeginShortcutMenuGrip(ShortcutMenu)

object

Documentobject

Anobjectexpressionthatevaluatestoavalidcontainerobject.Inthiscase,theonlyvalidcontainerisadocument.

ShortcutMenu

PopupMenuobject;input/outputfromthehandler

Theshortcutmenuabouttobedisplayed.

Remarks

Thiseventallowsyoutomakechangestotheshortcutmenubeforeitisdisplayed.Tomakechangestotheshortcutmenu,editthePopupMenuobjectthatispassedintoyourhandlerfromtheevent.ThissamePopupMenuobjectispassedoutasthecurrentshortcutmenu.UsetheEndShortcutMenueventtoperformanycleanupworkontheshortcutmenu.

Thiseventistriggeredafterallshortcutmenuelements,includinganyObjectARXcommandadditions,haveoccurred.

Noeventswillbefiredwhileamodaldialogisbeingdisplayed.

 SeeAlso

Methods,Properties,andEvents:

BeginShortcutMenuCommand

BeginShortcutMenuDefault

BeginShortcutMenuEdit

BeginRightClick

ActiveXandVBADeveloper'sGuide:

"UseEvents"

Example

PrivateSubAcadDocument_BeginShortcutMenuOSnap(ShortcutMenuAsAutoCAD.IAcadPopupMenu)

'Thisexampleinterceptsashortcutmenustartwhileyouareintheosnapmode.

'

MsgBox"Youhavejustinitiatedashortcutmenuinosnapmode!

"

EndSub

Deactivateevent

Triggeredwhenthedrawingwindowisdeactivated.

SeeAlso|Example

Signature

object.Deactivate()

object

Documentobject

Anobjectexpressionthatevaluatestoavalidcontainerobject.Inthiscase,theonlyvalidcontainerisadocument.

Remarks

Noeventswillbefiredwhileamodaldialogisbeingdisplayed.

 SeeAlso

Methods,Properties,andEvents:

Activate

ActiveXandVBADeveloper'sGuide:

"UseEvents

Example

PrivateSubAcadDocument_Deactivate()

'ThisexampleinterceptsadrawingDeActivateevent.

'

'Thiseventistriggeredwhenadrawingwindowloosesfocus.

'

'Totriggerthisexampleevent:

Opentwodrawingsandswitchfrom

'onedrawingwindowtoanother

MsgBox"Youhavejustdeactivatedadrawing!

"

EndSub

EndCommandevent

Triggeredimmediatelyafteracommandcompletes.

SeeAlso|Example

Signature

object.EndCommand(CommandName)

object

Application

Anobjectexpressionthatevaluatestoavalidcontainerobject.Inthiscase,theonlyvalidcontaineristheapplication.

CommandName

String

Thenameofthecommandthatwasissued.

Remarks

TheEndCommandeventfollowstheBeginCommandeventafterAutoCADcompletesprocessingthecommand.Iftheusercancelsoutofthecommand,theEndCommandeventwillnotbetriggered.

TheBeginCommandeventwillbefiredforanybasicAutoCADcommand,oranycommandregisteredontheAutoCADcommandstackviaanObjectARXapplication,ortheVisualLISPvlax-add-cmdfunction.Itwillnotbefiredforanynormallydefun'dC:

LISPfunctionbecauseitisnotexposedtothecommandstack,eventhoughyouexecuteitfromtheAutoCADcommandLine.IfyouneedLISPcommandstoberecognizedwhentheyexecute,youwillneedtousetheVisualLISPvlax-add-cmdfunctiontoregisterthecommandcorrectlytotheAutoCADcommandstack.

IfyouundefineanAutoCADcommandandthenredefineitviaaLISPdefun,theBeginCommandeventmaynotbetriggereduntilanactualAutoCADcommandiscalled;forexample,(command"_.LINE"...).

AutoCADcommandsarestoredingroupsinthecommandstack.OneinstanceofthecommandstackiscreatedperAutoCADsession.ThisstackconsistsofthenativeAutoCADcommands,aswellasanycustomcommandsyouaddtoit.

Noeventswillbefiredwhileamodaldialogisbeingdisplayed.

 SeeAlso

Methods,Properties,andEvents:

BeginCommand

ActiveXandVBADeveloper'sGuide:

"UseEvents

Example

PrivateSubAcadDocument_EndCommand(ByValCommandNameAsString)

'ThisexampleinterceptsadrawingEndCommandevent.

'

'Thiseventistriggeredwhenadrawingreceives

'anycommandcompatiblewiththisevent.

'

'Totriggerthisexampleevent:

Issueanycommandtoanopendrawingfrom

'eitherthecommandline,VBA,theACADmenus,theACADtoolbars,orLISP.

'Whenthecommandisfinished,thiseventwillbetriggered.

'Usethe"CommandName"variabletodeterminewhichcommandjustfinished

MsgBox"Adrawinghasjustfinisheda"&CommandName&"command."

EndSub

EndLISPevent

TriggereduponcompletionofevaluatingaLISPexpression.

SeeAlso|Example

Signature

object.EndLISP()

object

Applicationobject,Documentobject

Anobjectexpressionthatevaluatestoavalidcontainerobject.Inthiscase,theonlyvalidcontainersaretheapplicationandadocument.

Remarks

ThiseventwilloccuraftereitheranormalterminationoftheLISPevaluation,orafteracancellationoftheLISPevaluation.

Noeventswillbefiredwhileamodaldialogisbeingdisplayed.

 SeeAlso

Methods,Properties,andEvents:

BeginLISP

ActiveXandVBADeveloper'sGuide:

"UseEvents

Example

PrivateSubAcadDocument_EndLisp()

'ThisexampleinterceptsadrawingBeginLispevent.

'

'Thiseventistriggeredwhenadrawingfinishes

'atheevaluationofaLISPexpression.

'

'Totriggerthisexampleevent:

StarttheevaluationofaLISPexpressionand

'waitforittofinishbeingevaluated

MsgBox"ALISPexpressionhasjustfinishedbeingevaluated!

"

EndSub

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 工学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1