How do I add a settings page to my gadget?
Some gadgets allow the user to configure extra settings.
According to the Vista design guidelines, you should avoid doing this if possible, and you should always choose good defaults, rather than force the user to configure anything.
To add the settings button (the spanner icon), you need to add the following
The settingsClosed function is called when the user closes the settings window. You’ll probably use this to refresh the gadget’s display.
For more information, check out this page.