Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: help for win7 gadget

30 Mar 2009   #1

win XP
help for win7 gadget

Hi all,
I need help :-)

I need a tutorial witch tells how I can create gadgets in Windows 7!!

Pleas can someone help me?? As soon as possible??

PS: Sorry my English is not the best!

My System SpecsSystem Spec

30 Mar 2009   #2

Windows 7 Ultimate Vista Ultimate x64

Have a look here and you might find some useful info. Windows Live Gallery - Developer center
My System SpecsSystem Spec
30 Mar 2009   #3

win XP

Hi Mr GRiM,
thanks for your link but I now this link and there is no Information which helps me
My System SpecsSystem Spec

30 Mar 2009   #4

Windows 7 Ultimate Vista Ultimate x64

Are you sure, did you follow the links to here

and here is a great tutorial

Developing a Gadget for Windows Sidebar Part 1: The Basics 
 The first of three overviews that describe how to create a basic gadget for the Windows Sidebar. In this overview, we demonstrate a simple "Hello World" gadget and the steps required to install and display it in the Sidebar. Introduction

 Gadgets are lightweight HTML and script-based applications that provide the abillity to derive and present information or functionality from a variety of sources, such as local applications and controls, or Web sites and services. Developers with experience authoring Web pages will find the process of creating a gadget very familiar. The Files

 	A basic gadget consists of two files:     
  1. The manifest, an XML file that contains general configuration and presentation information for the gadget. Note This file must be named gadget.xml.
  2. The HTML file that provides the shell for the gadget UI and contains the core code for the gadget. Note This file must have the name as specified by the <name> tag of the associated gadget manifest.
A more robust gadget implementation may require other files not detailed here. For the purposes of this overview, however, the discussion is limited to these two core files. The Steps In general, the steps for creating a gadget are:
  1. Create a development folder to contain the gadget files. It is generally good practice to give the development folder the same name as the gadget it hosts, with the added extension of .gadget. For example, if your gadget's name is "Test" then the development folder should be named "Test.gadget". This reduces naming confusion later when it comes time to install the gadget. However, the development folder can have any name you wish. Similarly, the development folder can be located anywhere. However, during development and testing it is typically more efficient to place the folder in one of the system folders associated with the Sidebar:
    • %USERPROFILE%\AppData\Local\Microsoft\Windows Sidebar\Gadgets (for user gadgets)
    • %SYSTEM_ROOT%\Program Files\Windows Sidebar\Gadgets (for global gadgets)
    The following image shows a gadget development folder in the %USER_DATA%\Local\Microsoft\Windows Sidebar\Gadgets folder. These practices ensure the gadget appears in the gadget picker with minimal subsequent file handling.
  2. Create the manifest file and save it to the development folder. For more information on the gadget manifest, see Gadgets for Windows Sidebar Manifest. Copy Code <?xml version="1.0" encoding="utf-8" ?> <gadget> <name>SDK Shell</name> <version></version> <hosts> <host name="sidebar"> <base type="HTML" apiVersion="1.0.0" src="Shell.html" /> <permissions>Full</permissions> <platform minPlatformVersion="1.0" /> </host> </hosts> </gadget>
  3. Create the core .html file and save it to the development folder. Copy Code <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=Unicode" /> </head> <body> <div id="gadgetContent"> </div> </body> </html>
  4. Install the gadget, if necessary. Depending on where you created your development folder, you may need to copy the folder or its content to one of the two previously identified Sidebar system folders. Alternatively, you may want to package the gadget for general distribution and test the gadget installation process. For more information on installing and updating a gadget, see Gadgets for Windows Sidebar Updating and Refreshing.
  5. Test the gadget and make revisions as necessary.
The Example The following is a step-by-step example for creating a simple "Hello World" gadget.
  1. To open the Sidebar, click the Start button, point to All Programs, then to Accessories, and then click Windows Sidebar. You can also click the Start button, click Run..., and then type "sidebar" in the Open text field and press ENTER.
  2. Locate and open your gadgets folder. Click the Start button, and then click Run.... In the Open text box, type: %USERPROFILE%\AppData\Local\Microsoft\Windows Sidebar\Gadgets
  3. In your Gadgets folder, create a new folder named HelloWorld.gadget.
  4. Copy and paste the following code into Notepad or a similar editor that allows you to create an HTML file. Name the file HelloWorld.html, and save it in your HelloWorld.gadget folder. Note Docked gadgets must be at least 60 pixels high (the height of the gadget toolbar including the Settings icon) and anywhere from 25 pixels to 130 pixels wide to fit within the maximum width of the Sidebar. Oversized gadgets are not clipped at the bounds of the Sidebar. Undocked gadgets have no maximum size constraints. Copy Code <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=Unicode" /> <title>Hello World</title> <style type="text/css"> body { margin: 0; width: 130px; height: 75px; font-family: verdana; font-weight: bold; font-size: small; } #gadgetContent { margin-top: 20px; width: 130px; vertical-align: middle; text-align: center; overflow: hidden; } </style> <script type="text/jscript" language="jscript"> // Initialize the gadget. function init() { var oBackground = document.getElementById("imgBackground"); oBackground.src = "url(images/background.png)"; } </script> </head> <body onload="init()"> <g:background id="imgBackground"> <span id="gadgetContent">Hello World!</span> </g:background> </body> </html>
  5. To create the gadget manifest, copy and paste the following text into a new file. Save your file with the file name gadget.xml and UTF-8 encoding. Copy Code <gadget> <name>SDK Hello World</name> <version></version> <author name="Microsoft"> <info url="" /> </author> <copyright>&#169; Microsoft Corporation.</copyright> <description>"HelloWorld" Sidebar gadget sample.</description> <hosts> <host name="sidebar"> <base type="HTML" apiVersion="1.0.0" src="HelloWorld.html" /> <permissions>Full</permissions> <platform minPlatformVersion="1.0" /> </host> </hosts> </gadget>
  6. Click the "+" symbol at the top of the Sidebar to display the Gadget Gallery.
  7. In the Gadget Gallery, the "SDK Hello World" gadget should be visible.
  8. To install the gadget in the Sidebar, double-click the icon for the "SDK Hello World" gadget or drag and drop it to the Sidebar. Note Unlike a standard Microsoft Windows icon, a gadget icon is nothing more than a Web-based image file (.gif, .jpg, or .png). The image can be created using Microsoft Paint or similar image editing tool. If a custom icon isn't specified in the manifiest, Sidebar provides a generic icon for the gadget. When creating custom icons, it is recommended that they be 64 pixels wide by 64 pixels high. The gadget picker reserves a space of that size and resizes the icon accordingly.
For Further Reference Developing a Gadget for Windows Sidebar Part 2: The G:BACKGROUND, G:IMAGE, G:TEXT Presentation Elements and GIMAGE Protocol Developing a Gadget for Windows Sidebar Part 3: Settings and Flyouts Windows Vista User Experience Guidelines for the Sidebar Web Development

My System SpecsSystem Spec
31 Mar 2009   #5

win XP

Hi Mr GRiM,
thanks, now it work fine.

I thik the Problem was my own gadget! It had an error!

Thanks and Regards,
My System SpecsSystem Spec
31 Mar 2009   #6

Windows 7 Ultimate Vista Ultimate x64

Your welcome Kyril, glad you got answers you needed
My System SpecsSystem Spec

 help for win7 gadget

Thread Tools

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:08 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33