A few words about development Sidebar Gadgets with DesktopX.
DesktopX & Sidebar Gadgets
Monday, October 27, 2008 by Vad_M | Discussion: DesktopX Tutorials
I have spent a lot of time to understand how to make Sidebar Gadgets with DesktopX which will work correctly. First of all any temporary data as well as temporary folders must be created in the gadget destination directory like:
"C:\Users\USER NAME\AppData\Local\Microsoft\Windows Sidebar\Gadgets\GADGET NAME.gadget\"
In this case your gadgets will work correctly. As well all data will be removed automatically on gadget uninstalling.
But there is more serious problem I have found during my experiments! Imagine that you have more than one installed gadget (created with DesktopX!) in your Sidebar. If you'll try to open "Right Click" Service Menu each of DX gadget that will be out of focus will disappear from the Sidebar (i.e. they will appear under the Sidebar because of a minor bug with Z-order). However there is the easy way to solve this. You just need to add the next code lines into the script of your Main Parent object:
Function Object_OnRButtonDownEx(obj,x,y)
If obj.name <> "" Then object.ontop : object.setfocus
End Function
Function Object_OnRButtonUpEx(obj,x,y,dragged)
If obj.name <> "" Then object.ontop : object.setfocus
End Function
Hope this help you.
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!
Reply #1 Tuesday, October 28, 2008 7:53 AM
wow.. i had this happen to me before with the ONE sidebar gadget i tried to make.. very cool !!
thanks!