Sidebar Gadget Development - Gadgets
Recent update: 2008-3-21

Developing in a directory

230 byte By tkroll at 2008-3-7
Hello, I read that you can develop a gadget from a xxx.gadget directory instead of rezipping on every change. How does this work? I can't get the directory recognized as anything but a directory. Thanks, Ty

Search for a web address, edit it and show the result in Flyout automatically

575 byte By DiasVFX at 2008-3-6
Hi guysI'm studying gadgets development and would like to make some tests with an idea that popup in my mind. Let's suppose that when I hit "enter" on my gadget it does...:- load a webpage (in background)- edit html code (for ex.: delete first 30 lines of code)- show the result in ...

Code Sign Error

374 byte By Tomfromcener.co.uk at 2008-3-5
Hi when i do a code sign the publisher is not displaying ...

WMP problem loading file embedded in gadget

638 byte By miltonhowe at 2008-3-3
I am trying to embed an mp3 file into a gadget and then play it using a windows media player.it seems to be not loading the file. when i context-click on the media player i get:WindowsMedia Player cannot play the file because the specified protocol is notsupported. If you typed a URL in the ...

Looking for a App

115 byte By Tomfromcener.co.uk at 2008-3-1
Hi Guys / Girls I looking for a app that supports creating cab files and supports sub folders :) any ideas

WMP

638 byte By miltonhowe at 2008-2-28
I am trying to embed an mp3 file into a gadget and then play it using a windows media player.it seems to be not loading the file. when i context-click on the media player i get:WindowsMedia Player cannot play the file because the specified protocol is notsupported. If you typed a URL in the ...

Shared memory reading by gadget

251 byte By target at 2008-2-27
Hi All, Is it possible to access to shared memory by gadget? Do you know any implementation/sample gadget/projects that uses shared memory (storing some data by process for example, and reading and displaying this info by the gadget). Thanks

First gadget nearly complete

1016 byte By IanPaskin at 2008-2-26
Hi, Ive been writting this gadget and getting towards finishing version 1, however while im tidying the last few bits up i thought i would post it here and get some feedback from you guys. It shows xbox 360 gamer tag info from mygamertag.net you need to add your gamertag in the setting page. ...

How can I access a local database (.mdb) in gadgets?

19 byte By AllenHsu at 2008-2-25
can i use vbscript?

addImageObject image shifts when you change its size

3154 byte By JonathanAbbott at 2008-2-24
In the following example, the image shifts down and right - as if it's being scaled from the bottom right corner. I used an image 1024x768 pixels in size.gadget.html element:<g:background id="bodyBackground" src="blank.png" style="width:100%; height:100%;" />code to add the ...

Gadget close/settings/move icons are incorrectly placed after Sidebar is reloaded

511 byte By JonathanAbbott at 2008-2-23
Just a minor observation, but one for the MS fix list:The three (or two if you have no settings) icons that appear when you hover over a Gadget are incorrectly placed for detached Gadgets after Sidebar is reloaded. They're shifted left 6 pixels.To reproduce this:1. Add the Calendar Gadget2. ...

addImageObject rotation causes corruption if Margin isn't 0

1031 byte By JonathanAbbott at 2008-2-22
In the following example, the aliased surround around the image is not placed correctly. Sidebar doesn't take account of the body Margin's.blank.png is a 100% transparent imagetest.png is a solid white image 300x400<BODY style="position:absolute; width:500px; height:500px;" > ...

Cannot add a gadget to sidebar

433 byte By noni78 at 2008-2-22
Hello,I have the dutch version of windows ultimate vista. When i try to put a gadget from http://gallery.microsoft.com i can not add it to the sidebar. Ive download it install it but it's not visible in windows sidebar/gadget map and it will not appear on the sidebar.What i'm doing wrong. The ...

Flash movies

78 byte By SpaceD at 2008-2-21
Hi all, is it possible to embedd a Flash movie in a Sidebar gadged?

Detecting Gadget visibility / screen saver & power saving state

404 byte By MikaT?htinen at 2008-2-20
Is there anyway to detect if a gadget is visible or covered by other applications or if the screen saver / display power saver is on?I'm creating kind of a slide show gadget which will download images from an external server and it's wasting of server bandwidth to keep downloading the images ...

Possiable to have text with no background or transparent background

83 byte By TobyBroom at 2008-2-19
I'd like to have text just floating with no background at all how would I do that.

MSN Weather Gadget

2665 byte By LorneReap at 2008-2-18
I have been able to get my gadget running through pointing it to the weather channel, with a secondary search in msn weather.But I can not get it to work properly if I point the script to msn weather, it seems that get an error that states that the page is private or in another location.This ...

Gadget creep

356 byte By JonathanAbbott at 2008-2-17
Just an observation, but... Has anyone else noticed that Gadgets move of their own accord when Sidebar loads?For instance, if Sidebar is closed by DEP, Gadgets randomly creep to the left when it restarts.Then there's the order on the Sidebar itself. If you shutdown/restart or exit and reload ...

Changing <gtext>.value doesn't update <gtext>.width

353 byte By JonathanAbbott at 2008-2-16
Add a gtext element:bodyText = bodyBackground.addTextObject("This is some text", "Arial", 20, "Black", 0, 0);Then change the text to something shorter:bodyText.value = "Text";And you end up with "Text" streched to fit the original width of "This is some text"! Surely, it should recalculate ...

onSettingsClosing, onFocus and other events...

1324 byte By Chrisull at 2008-2-15
I have a problem (with one solution), where the following happens...Ok desired chain on events:Gadget displays some text based on XMLSettings window openedSettings changedSettings window closedGadget displays some different text based on different XMLWhat's happening:Gadget displays some text ...

location.reload(true) kills the System object?

978 byte By jdunning at 2008-2-15
I stuck a reload button in my gadget so I could easily refresh it to see the effects of changing something in the code. The onclick handler for the button is onclick="window.location.reload(true)". This does in fact reload the HTML and JS. But it seems to also kill the System object ...

System.Gadget.Flyout.file gives unspecified error

886 byte By LuisMiguelAbreu at 2008-2-15
Hello guys.the following code is giving a javascript error which says "unspecified error":System.Gadget.Flyout.file = "channel.htm";System.Gagdet.Flyout.show = true;Any clues on why this is happening? btw, the file property is the only one that is missing. thanks a ...

Lots of ways to corrupt an image with g:background!

2315 byte By JonathanAbbott at 2008-2-15
For the following examples, use any solid image, with no transparency and can be any image format.Using the following g:background, will rotate the image, but corrupt the right and bottom areas. The outline of the image is there, but the image itself is transparent within it. <g:background ...

HTML form in gadget submits to new window. How can I stop this?

1077 byte By radad23 at 2008-2-15
Hi all, I'm new to sidebar gadgets as well as Windows Vista. I'm a web developer, coming from Windows 2000 Pro, where I had a small php-based form that kept track of my hours. In Windows 2000 I was able to add it to my desktop fairly easily with "Active Desktop". It is proving to be somewhat ...

Maximum size of settings window?

461 byte By Chrisull at 2008-2-14
Is there a limit to how large the settings dialog can be displayed as ? Anything in the CSS that's bigger than about 400 by 300 currently doesn't get displayed, it just gets cropped to that. Well the content of the dialog is displayed still but it goes off the limits of the dialog... Is this ...

Is it possible use xaml in gadget with transparent background ?!

397 byte By AlexeyE.Rybakov-CpsLabs at 2008-2-14
Is it possible use xaml or xbap in gadget with transparent background ?!I used iframe to place xaml app. But if i try to change g:background size during Docking or Undocking it is doesn't work properly.So my gadget is now without background...Is any way to solve this problem?P.S.And when I'm ...

New to Gadget

424 byte By DeepakJadhav at 2008-2-13
i am new to gadget developement and currently going through "Windows Live Gadget Developer's Guide". while reading i came accross example where fancy button is displayed in the gadget.It is making use of API - "Start.FancyButton".But on my local system , i dont have ...

Sidebar refresh after wakeup

964 byte By marcusadolfsson at 2008-2-13
Hello,I wrote a small gadget the pulls a comma seperated list of values over a URL GET and displays them. I have it set to refresh every 60 seconds. However, after the computer comes out from wakeup it doesn't refresh any more. What code can I add to address this?<script ...

My struggling gadget production.

1181 byte By Hansonc at 2008-2-12
I am a bit of a novice w/ programming and the whole gadget concept.I am trying to create a gadget that allows me to Lock my Workstation, Shut Down or Restart the computer w/ just the click of a button.I figured it would be a simple gadget, HA! i was wrong.At first I figured i would find out ...

inline g:text and addGlow method

640 byte By louissan at 2008-2-11
Hi everyone,The addGlow method works perfectly when using it as in :var mytext = bgid.addTextObject('TEXT',fontfamily,textsize,fontcolor,posx,posy);mytext.addGlow('white',3,100);However, I can't seem to have it work when the gText element is "hardcoded" in the document, as in :<g:text ...

We're sorry but we won't be able to host your submission ?

2068 byte By Tomfromcener.co.uk at 2008-2-10
Hi i just got this email can anyone tell me why ps its still there http://gallery.live.com/liveItemDetail.aspx?li=7e4ba3f8-29db-42db-8fb5-2ba61e67c08c&l=1Hello,We're sorry but we won't be able to host your submission of BBC Radio Player on the Windows Live Gallery website.There was a ...

z-index with <object> and <g:background>

1138 byte By Lux- at 2008-2-10
I'm nearing completion of my gadget, but I have one last feature which is stalling me.My gadget is using an ActiveX control to stream video from a webcam. Everything is working great, however I'm running into the old problemof not being able to catch onclick events on the <object> tag. ...

Sidebar and Aero

193 byte By EricLin at 2008-2-8
Hi, What's the relationship between Sidebar and Aero? For example when Aero is off (automatically or manually) then sidebar will be turn off as well? And vice versa? Thanks.

Restart Gadget

183 byte By fathiS.Elashery at 2008-2-8
hi every one any one have a code to restart a the gadget, or force js array to loaded from file not from memory please any one know solution send it thanks

How do you submit a gadget?

165 byte By nadasurf2 at 2008-2-7
It seems the link for submitting gadgets from galley.microsoft.com is only for web gadgets. How do you submit a sidebar gadget to the microsoft gallery?

Gadget does not show

608 byte By JohannGranados at 2008-2-7
Hi,I have developed a very simple gadget which shows rss information from an specific web site. The gadget also shows stock information for a company, implements a transition between the rss and stock information as well as some javascript efects (fade and pixelate specifically). The problem I ...

What ever happend to the old gadgets from Microsoft ?

278 byte By Prince17 at 2008-2-7
Today i was going through an old video which was basically showing the sidebar development team. The video had some cool gadgets in it like the wmp11 gadget, a gadget which showed emails etc. I just wanted to know does Microsoft plan to release them to the public ?

How to install a gadget

252 byte By JohnHax at 2008-2-7
I'm trying to pack a gadget into a product installation. After copy my gadget to programfiles/windows sidebar/shared gadgets/ , users can see the gadget in the gadgets panel, but how can i add my gadget to the sidebar automaticly? Modify settings.ini?

Sidebar Always on Top after loading

161 byte By JonathanAbbott at 2008-2-6
Just an observation, but if you exit Sidebar and then reload it. It goes into "Always On Top" mode until you've clicked on its transparent background!

Call xml from an app

129 byte By Tomfromcener.co.uk at 2008-2-6
Hi just a quick question will i have enuff user rights to start a app from the gadget that opens a tcp port so i call xml from it

Dll inside gadget

190 byte By fathiS.Elashery at 2008-2-5
hi every body how can i use a dll inside the gadget code and if it is required to regsiter the dll please any one know answer reply thanks Fathi S. Elashery

Download and unzip a file from a Gadget ?

326 byte By esenterre at 2008-2-5
Hi,My gadget needs to download (via HTTP) a zip file and unzip it. This file contains information so local search can be done on client side.In Dashboard/Yahoo we have curl and unzip unix utilities to easily achieve that with some simple system call. How can you do that with Microsoft Gadgets ? ...

ActiveX help

552 byte By AndyE at 2008-2-4
I originally posted this on MicrosoftGadgets.com but I don't think I can reply there anymore.Basically, I want to create a gadget that uses my online web service, but I don't want the location (or password) visible in the source code for my Gadget. What I really want to do is create an ...

How to make transparent background clickable?

330 byte By JohnHax at 2008-2-4
There are some transparent areas in my gadget background, because my boss think it's cool... which treat me crazy, becasue all transparent areas are not clickable, and when i move mouse from non-transparent area into transparent area, event onmouseout is fired. Is there any method can make it ...

changing a flyout's size

829 byte By LiveGadgets at 2008-2-4
I'm having an issue with changing the size of a flyout. The size changes, but the window appears slightly lighter than it should be (i.e. everything is slightly grayed out) and nothing appears "active" (i.e. events don't seems to be fireing). Once I click anywhere in the flyout, the ...

Flyout to the front?

1591 byte By Chrisull at 2008-2-4
I have a gadget that navigates through a set of XML documents via next/previous buttons. Some of these documents link to a first page with windows media player attached to play an associated video, while some link to a second page which doesn't contain a video. You can navigate backwards and ...

What's apiVersion for?

684 byte By JohnHax at 2008-2-3
In gadget.xml: <base type="HTML" apiVersion="1.0.0" src="MyGadget.html" />I'm curious, so:Except HTML, is there any other base type? em...XAML?Which is the right apiVersion we should use? I'v seen 1.0.0, 1.1.0 and 0.0.3 in some gadgets code.BTW, on MSDN, ...

prevent Setting UI from opening?

535 byte By LiveGadgets at 2008-2-3
Does anybody know of a way to take control and prevent the Settings UI from opening when the user clicks the little wrench icon? I've set a breakpoint in the onShowSettings event that I set and looked to see if I could see some kind of event object that I could set cancel on but no go. I also ...

visual studio templates and intellisense

70 byte By Tomfromcener.co.uk at 2008-2-2
Is there any visual studio templates and intellisense for gadgets yet?

Just wrote my first gadget.

1892 byte By Anthony_W at 2008-2-2
I have been doing software development professionally and personally so I decided to check out what this new gadget thing for Vista is. Well I finished up my first gadget which is just a simple combination of javascript and css. The link is as follows for the zip file that contains the gadget: ...