Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

.NET

Developing Windows Vista Sidebar Gadgets


Deployment

Gadget deployment and distribution is straightforward. Although uncompressed .gadget folders can be copied from one system to another, users must manually move the folder into their respective Sidebar paths. To facilitate this, compress the contents of the folder into a .zip archive and rename it with a .gadget extension. When users double click on the file, Vista identifies the archive as a gadget archive and moves the contents into the correct location.

Because the archive is a single file, it can be easily transported using everything from e-mail attachments and local file servers to web servers, and if intended to be shared with the Vista community, on Microsoft's gadget web site. Gadgets can be submitted to Microsoft for distribution via the MicrosoftGadgets.com gadget submission page (microsoftgadgets.com/addgadget2.aspx). However, just because you submitted a gadget for public consumption doesn't automatically qualify it for a Gallery listing. Remember that Microsoft wants to promote Sidebar with as much positive buzz as possible and Microsoft has the final authority to consider every new gadget uploaded to be featured in the Gallery. Simple gadgets were allowed during the early beta development days to serve as tutorials and thought starters for other gadget developers, as well as a cherry-picking/sifting ground for Microsoft to select the "best of" gadgets for Vista's launch. The quality and coolness qualifications for Sidebar gadget Gallery distribution will continue to be raised as more attractive and sophisticated gadgets come online.

Next Steps

Obviously, MyFirst.gadget isn't very exciting, but it is a stub from which to begin developing the next killer gadget. As you have seen, gadgets are, for the most part, small web pages with special attributes, so having a solid background in web page design and JavaScript is essential for smart gadget implementation. Study the gadget object model (msdn.microsoft.com/library/en-us/sidebar/sidebar/reference/refs.asp) and experiment with the different calls that can be sent and received. Over time, more complex and interesting gadgets will be available. Use these for inspiration and insight toward creating your own amazing Sidebar gadgets.


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.