毕业设计论文外文资料翻译Word格式.docx
《毕业设计论文外文资料翻译Word格式.docx》由会员分享,可在线阅读,更多相关《毕业设计论文外文资料翻译Word格式.docx(10页珍藏版)》请在冰豆网上搜索。
附件:
1.外文资料翻译译文;
2.外文原文。
指导教师评语:
签名:
年月日
Endshortcutmenu事件
快捷菜单出现后被击活。
用法:
Object.Activate()
Object:
Document对象
对象表达式,其结果为有效的容器对象,此处必须为文档对象(document)。
说明:
当模式对话框显示时不会触发任何事件。
参见:
方法,属性和事件:
BeginShortcutMenuDefault
BeginShortcutMenuEdit
BeginShortcutMenuGrip
BeginShortcutMenuOsnap
BeginRightClick
Activex和VBA开发指导:
“使用事件”
UsingProgrammingLanguagesotherthanVBA
例程:
PrivateSubAcadDocument_Activate()
’本例演示快捷菜单事件的图形
’当用户关闭快捷菜单图形时,此事件被击活
’激活示例程序:
将鼠标放在快捷菜单活动的区域上,单击右键
’等待快捷菜单被打开,然后再关闭
MsgBox"
您刚才激活了一个图形!
"
EndSub
LayoutSwitched事件
用户转换一个不同的排列之后被激活
用法:
object.LayoutSwitched(LayoutName)
object:
WindowChanged
WindowMovedOrResized
PrivateSubAcadDocument_LayoutSwitched(ByValLayoutNameasString)
’演示排列转换事件的图形
’当用户用了不同的排列时被激活
打开图形并改变排列
’例如:
转换一个图形从模式到排列
’排列图表的多样性,我们可以选择自己需要的
LISPCancelled事件
当LISP表达的评估被取消时被激活
object.LISPCancelled()
Application对象,Document对象
对象表达式,其结果为有效的容器对象,此处必须为应用程序对象(application)或文档对象(document)。
BeginLISP
EndLISP
Activex和VBA开发指导:
PrivateSubAcadDocument_LispCancelled()
’本例演示LISP取消的图形
'
LISP表达的评估取消时被激活
操作LISP表达和取消LISP的评估在它完成之前
Modified事件
当对象和集合被修改时被激活。
object.Modified(Entity)
AllDrawingobjects,Block,Blocks,Dictionary,Dictionaries,DimStyle,DimStyles,Group,Groups,Hyperlink,Hyperlinks,Layer,Layers,Layout,Layouts,Linetype,Linetypes,ModelSpace,PaperSpace,PlotConfiguration,PlotConfigurations,RegisteredApplication,RegisteredApplications,SelectionSet,SelectionSets,TextStyle,TextStyles,UCS,UCSs,View,Views,Viewport,Viewports,XRecord
对象表达式,其结果为有效的容器对象。
ObjectAdded
ObjectErased
PublicwithEventsPlaneasAcadLWPolyline'
UsewithModifiedEventExample
SubExampleModified()
’在模式状态下本例创造了lightweightpolyline和涉及Polyline的使用在不同的场合建立相互的修改事件
’在修改事件中本例修改新的对象,激活代码
’修改对象激活事件
’提示:
本事件代码将要被激活
’在们移动或重新修改背景之前,线不会变为蓝色当本例的信件箱被展现时
EndShortcutMenuevent
Triggeredaftertheshortcutmenuappears.
SeeAlso|Example
Signature
object.EndShortcutMenu(ShortcutMenu)
Object
Documentobject
anobjectexpressionthatevaluatestoavalidcontainerobject.Inthiscase,theonlyvalidcontainerisadocument.
ShortcutMenu
PopupMenuobject;
input/outputfromthehandler
theshortcutmenuthathasbeendisplayed.
Remarks
Usethiseventtoperformanycleanupworkontheshortcutmenu.
Noeventswillbefiredwhileamodaldialogisbeingdisplayed.
SeeAlso
Methods,Properties,andEvents:
ActiveXandVBADeveloper'
sGuide:
UseEvents"
Example
PrivateSubAcadDocument_EndShortcutMenu(ShortcutMenuasAutoCAD.IAcadPopupMenu)
‘ThisexampleinterceptsadrawingEndShortcutMenuevent.
'
‘Thiseventistriggeredwhentheuserclosesadrawingshortcutmenu.
‘Totriggerthisexampleevent:
Rightclickthemouseintheworkingareaofadrawing,
‘Waitfortheshortcutmenutobedisplayedandthendismisstheshortcutmenu
MsgBox"
Ashortcutmenuwasjustclosed!
LayoutSwitchedevent
Triggeredaftertheuserswitchestoadifferentlayout.
LayoutName
String;
inputtothehandler
thenameofthelayouttheuserhasswitchedto.
WindowMovedOrResized
‘ThisexampleinterceptsadrawingLayoutSwitchedevent.
‘Thiseventistriggeredwhentheuserswitchestoadifferent
‘Drawinglayoutview.
Openadrawingandchangeitslayoutview
‘Forexample:
SwitchthedrawingfromModelviewtoLayout1view
‘Usethe"
LayoutName"
variabletodeterminethewhichlayoutviewwechangedto
Thedrawinglayoutwasjustchangedto:
"
&
LayoutName
LISPCancelledevent
TriggeredwhentheevaluationofaLISPexpressioniscancelled.
SeeAlso|Exampl