调用对话框
From Apache OpenOffice Wiki
< Zh | Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
此章节说明 UNO 组件如何与 OpenOffice.org Basic IDE 中由对话框编辑器创建的对话框交互。
OpenOffice.org 2.0.4 版本之前,对话框编辑器设计的对话框只能在脚本框架(详见:脚本框架)各个范围中 OpenOffice.org Basic 的上下文中适度地使用。限制的原因是只有脚本框架管理的脚本才能指派为控件事件的操作。虽然也能使用 com.sun.star.awt.XDialogProvider API 来实例化对话框,但是当直接使用相应的 AWT 控件接口来添加侦听器时却没有其他方法来获取来自事件的回调。因此使用对话框编辑器创建的对话框非常地不便。
从 OpenOffice.org 2.0.4, 组件方法也能与控件事件绑定了。以下章节说明在对话框编辑器中如何与组件方法绑定和如何设计组件以便使用这种机制。
| Content on this page is licensed under the Public Documentation License (PDL). |