gadget
How Gadgets Work
Gadget Files
- Gadget Manifest. An XML file defining the gadget properties, including name, icon,
and description.
- HTML File. Defines the core code for the gadget.
- HTML settings file. For use in the HTML.
- Images, Script, and Style Sheets. Defines the core code for the gadget.
- Icon. For use in the Gadget Picker.
Creating a Gadget
Releasing Gadet
-
Windows サイドバー ガジェットの配布について
- makecab
- 拡張子は「gadget」
- Webサイトから配布
- ガジェットギャラリへアップロードする
- 自分のWebサイトへリンク
サイドバーガジェット用にmimeのContent-Typeを設定
拡張子gadgetに対して「application/windows.gadget」を設定
MSのWindows Live Galleryでガジェットを落とすときは「application/x-windows-gadget」
- VistaのIE7でgadgetをインストールしようとすると、身元の確認を促すダイアログ表示
Cab形式にして証明書を付ける
- CAB ファイルをC:\Users\smnb\AppData\Local\Microsoft\Windows Sidebar\Gadgets\ に置いてもだめ
-> ほかのフォルダに置いてダブルクリックするとフォルダをその名前として解凍される
debug
- Close all running instances of your gadget.
- Make changes to your gadget files.
- Use the Gadget Gallery to reopen your gadget
-
Once a gadget file is changed and saved to the file in the gadget folder, the change
works immediately the next time you select your gadget in the Gadget Picker.
- All
previous versions of a gadget must be closed to see new changes applied.
-
Gadgets may also be debugged when a debugger capable of debugging script is installed.
Microsoft Visual Studio is one such debugger. To enable gadget debugging, you must
visit the Internet Options control panel. Choose the Advanced tab, then ensure the
option to 'Disable script debugging (Other)' is unchecked.