Windows Gadget 开发常见问题
来源:互联网 发布:威廉一世知乎 编辑:程序博客网 时间:2024/06/04 00:44
1.1 文件设置
System.Gadget.Flyout.file = "flyout.html";//若需要flyout其他page,可以随时设置此属性
System.Gadget.settingsUI = "setting.html";
1.2 调试
//可以使用DebugView查看输出信息
System.Debug.outputString("update error: " + e.message);
1.3 数据传输
//将数据传递到Flyout.Htm页面
System.Gadget.Settings.writeString('sfid', this.sfid);
System.Gadget.Flyout.file = "flyout.html";
System.Gadget.Flyout.show = true;
//在Flyout.Htm页面接受数据
var id=System.Gadget.Settings.readString('sfid');
//从Gadget窗体访问flyout窗体:
System.Gadget.Flyout.document.parentWindow.<id/function/variable>
//从Flyout/Settings窗体访问Gadget窗体:
System.Gadget.document.parentWindow.<id/function/variable>
1.4 常见事件
//常常在main page中使用
System.Gadget.onSettingsClosed = function () {
System.Debug.outputString("Setting Closed ...");
};
System.Gadget.Flyout.onHide = function () {
System.Debug.outputString("Flyout Hide ...");
};
System.Gadget.onUndock = function () {
System.Debug.outputString("Gadget undock ...");
};
System.Gadget.onDock = function () {
System.Debug.outputString ("Gadget Dock");
};
//常在flyout page中使用
System.Gadget.Flyout.onShow=function() {
System.Debug.outputString("Flyout Show");
}
- Windows Gadget 开发常见问题
- Windows Sidebar Gadget开发教程
- Windows Gadget开发之运行外部程序
- Windows Mobile开发常见问题
- windows mobile 开发常见问题
- Windows Vista Countdown gadget
- Windows Gadget 制作二
- Windows Gadget 制作(三)
- 认识Windows Gadget!
- Windows Mobile 开发常见问题集
- Windows CE开发常见问题解答
- Windows CE开发常见问题解答
- Windows Mobile 开发常见问题集
- Windows CE开发常见问题解答
- Windows Mobile 开发常见问题集
- Windows CE开发常见问题解答
- Windows Mobile 开发常见问题集
- Windows CE开发常见问题解答
- 如何在企业中建立软件测试的威望
- 拥抱Windows 7——解读Aero
- Javascript的预编译与变量作用域浅析
- memcache解决高并发的数据库瓶颈问题
- VMware7.0下linux中自主安装VM tools
- Windows Gadget 开发常见问题
- 有些相似之处
- 【转】Spring 和 struts1.2 整合的三种方式
- Quartz Cron 表达式(时间格式的写法)
- 跨浏览器动态生成li元素
- phpmyadmin中三种认证方式config, http or cookie based 有什么不同
- 程序设计七误区
- arm的bin二进制代码分析
- Java内存模型