摘要
PowerPoint通过Application对象提供了作用于演示文稿、幻灯片和演示文稿窗口等非控件的对象的事件。但是对这些事件的编程与对其他标准控件的事件的编程不同,必须要先在类模块里用WithEvents关键字申明一个Application对象,并在另一个标准模块的初始化例程里实例化该类模块和Application对象,然后才能实现对Application对象的事件的编程。可以利用Application对象的幻灯片放映事件来实现在PowerPoint放映时动态设定放映内容。
PowerPoint has provided events for such non-control objects as presentations, slides and windows. However, Programming on these events is quite different from programming on the standard controls: programming on the events of application objects cannot be conducted until an application object has been declared with the key word WithEvents in a class module and this class module as well as its apphcation object has been referenced in the initialization routine in a standard module. Setting the playing contents dynamically when the presentation is being played can be implemented through applying the playing events of the application object.
作者
陈思敏
CHEN Si-min (Guangdong Institute of Education, Guangzhou 510303, China)
出处
《电脑知识与技术》
2007年第5期743-744,共2页
Computer Knowledge and Technology