外文翻译---ActiveX and VBA Reference.doc
-
资源ID:95503
资源大小:211KB
全文页数:14页
- 资源格式: DOC
下载积分:5积分
扫码快捷下载
会员登录下载
微信登录下载
微信扫一扫登录
- 扫描成功!重扫
- 请在手机上确认支付
手机扫码下载
请使用微信 或支付宝 扫码支付
• 扫码支付后即可登录、下载文档,同时代表您同意《人人文库网用户协议》
• 扫码过程中请勿刷新、关闭本页面,否则会导致文档资源下载失败
• 支付成功后,可再次使用当前微信或支付宝扫码免费下载本资源,无需再次付费
友情提示
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站资源(1积分=1元)下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
|
外文翻译---ActiveX and VBA Reference.doc
毕业设计(论文)外文资料翻译题目:ActiveXandVBAReference院系名称:专业班级:学生姓名:学号:指导教师:教师职称:起止日期:地点:原文ActivateeventTriggeredwhenadocumentwindowisactivated.SeeAlso|ExampleSignatureobject.Activate()objectDocumentobjectAnobjectexpressionthatevaluatestoavalidcontainerobject.Inthiscase,theonlyvalidcontainerisadocument.RemarksNoeventswillbefiredwhileamodaldialogisbeingdisplayed.SeeAlsoMethods,Properties,andEvents:AppActivateWindowMovedOrResizedActiveXandVBADevelopersGuide:"UseEvents"ExamplePrivateSubAcadDocument_Activate()ThisexampleinterceptsadrawingActivateevent.Thiseventistriggeredwhenadrawingwindowbecomesactive.Totriggerthisexampleevent:EitheropenanewdrawingorswitchfromonedrawingwindowtoanotherMsgBox"Youhavejustactivatedadrawing!"EndSubAppActivateEventTriggeredjustbeforethemainapplicationwindowisactivated.SeeAlso|ExampleSignatureobject.AppActivate()objectApplicationAnobjectexpressionthatevaluatestoavalidcontainerobject.Inthiscase,theonlyvalidcontaineristheapplication.RemarksNoeventswillbefiredwhileamodaldialogisbeingdisplayed.SeeAlsoMethods,Properties,andEvents:AppDeactivateWindowMovedOrResizedActiveXandVBADevelopersGuide:"UseEvents"ExamplePublicWithEventsACADAppAsAcadApplicationUsewithApplicationEventExamplesSubExample_AcadApplication_Events()Thisexampleinitializesthepublicvariable(ACADApp),whichwillbeusedtointerceptAcadApplicationEventsTheVBAWithEventsstatementmakesitpossibletointerceptagenericobjectwiththeeventsassociatedwiththatobject.BeforeyouwillbeabletotriggeranyoftheAcadApplicationevents,youwillneedtorunthisprocedure.WecouldgettheapplicationfromtheThisDocumentobject,butthatwouldrequirehavingadrawingopen,sowegetitfromthesystem.SetACADApp=GetObject(,"AutoCAD.Application.16")EndSubPrivateSubACADApp_AppActivate()ThisexampleinterceptsanApplicationAppActivateevent.ThiseventistriggeredwhentheAutoCADapplicationreceivesfocusTotriggerthisexampleevent:1)Makesuretoruntheexamplethatinitializesthepublicvariable(namedACADApp)linkedtothisevent.2)SwitchfocusfromAutoCADtoanotherWindowsapplicationandthenbackagain.MsgBox"AutoCADwasjustactivated!"EndSubAppDeactivateeventTriggeredjustbeforethemainapplicationwindowisdeactivated.SeeAlso|ExampleSignatureobject.AppDeactivate()objectApplicationAnobjectexpressionthatevaluatestoavalidcontainerobject.Inthiscase,theonlyvalidcontaineristheapplication.RemarksNoeventswillbefiredwhileamodaldialogisbeingdisplayedSeeAlsoMethods,Properties,andEvents:AppActivateWindowMovedOrResizedActiveXandVBADevelopersGuide:"UseEvents"