Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>See <a href="http://www.aeroxp.org/board/index.php?showtopic=9741" rel="nofollow noreferrer">Flip Calendar</a>, by Jonathan Abbott. His code is usually well commented so maybe you can get some ideas from that.</p> <p><strong>EDIT</strong><br> The source of my information was from the early days of Vista Beta 2 where that was the official word from MS. I also found the following response to a thread on the MSDN forums regarding the Flip Calendar gadget itself:</p> <p><a href="http://social.msdn.microsoft.com/Forums/en-US/sidebargadfetdevelopment/thread/841e9d5e-32e9-453f-bd0e-dc5a4e607c33/" rel="nofollow noreferrer">http://social.msdn.microsoft.com/Forums/en-US/sidebargadfetdevelopment/thread/841e9d5e-32e9-453f-bd0e-dc5a4e607c33/</a></p> <p>The gadget has options for setting bold font on the day of the month (a g:text object) but on closer inspection it doesn't work. Sorry about that. The MS guys have been known to be wrong as well on one or more occasions. I can honestly say that I don't use the g:text object.</p> <p>This means your only (well, non activex route) option is VML text, which provides a lot of flexibility on layout. However, you will have to place it on a <em>fully opaque</em> area of the gadget which is probably why you wanted to use the addTextObject in the first place. <a href="http://www.garybeene.com/vml/vml-sum.htm" rel="nofollow noreferrer">Gary Beene's site</a> really helped me out when I was getting started, but it doesn't go into any detail on the <a href="http://msdn.microsoft.com/en-us/library/bb264073(VS.85).aspx" rel="nofollow noreferrer">v:textbox element</a> and the <a href="http://msdn.microsoft.com/en-us/library/bb263924(VS.85).aspx" rel="nofollow noreferrer">v:textpath element</a>, though the MSDN documentation goes into enough detail on these.</p> <p>If you need to place the text on a non-fully opaque area of the gadget, then you could still go the VML route and place an image behind the text that acts as a shadow, starting out fully opaque and fading to fully transparent. This is how Microsoft does text in window title bars with aero enabled.<br> Alternatively, you could create an ActiveXObject that draws the text you need in the font you want and saves the image to a temporary file in the gadget folder. Then you set that to the src of an addImageObject. I've done something similar in a gadget and it's fast enough not to be noticeable. You can also set min/max dimensions so shrinking/stretching to fit becomes a breeze.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload