What does Windows 7 use to render Desktop Gadgets, and why would I ever use “g:” tags?

This is really a two part question, but they're kinda related:

  1. How does Windows 7 render Desktop Gadgets? I'm trying to style some of my HTML elements with CSS, but not everything behaves as expected. Is my CSS being rendered by IE 9, IE 8, or is it rendered by whichever latest version of IE is installed on the computer?

  2. What is the point of using the "g:" tags, such as <g:background> or <g:text>? Is there any special benefit, as opposed to using JavaScript and CSS to manipulate standard HTML elements? Seems like all they're good for is making the code less portable.

Answers


It uses whatever version of IE is installed to render the Gadgets, however it always uses the IE7 compatible version of it from my experience. This I assume is just because of compatible reasons.

The g:text, g:background, etc tags are good when working on a gadget with a transparent background. If you just use plain HTML they are rendered with magenta artifacts on the semi transparent pixels. They also use a nicer font renderer - presumably DirectWrite or similar - so they look nicer.

Basically, if you give your gadget only uses 1 bit opacity, there is no reason to use the g: tags to my knowledge. If your gadget needs more than that, you have to use them.


Need Your Help

Retrieve set of rectangles containing a specified point

algorithm search geometry point-in-polygon

I can't figure out how to implement this in a performing way, so I decided to ask you guys.

Create Eloquent model from complex raw SQL-query

mysql laravel laravel-5 eloquent laravel-5.1

I am thinking about the right design of the method which gives user a list of clients who's last appointment was long time ago.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.