Page 18 of 19

Re: Realtime gauges v1.0.0.3 available for download

Posted: Thu 09 Feb 2012 7:23 pm
by steve
Perhaps if you explain exactly what you want to do, and give a link to an example? I didn't reply as I know you can't actually enlarge the Silverlight application itself, so I assume whatever you want to do is something to do with HTML, in which I have a basic understanding but am by no means an expert.

Re: Realtime gauges v1.0.0.3 available for download

Posted: Thu 09 Feb 2012 7:47 pm
by duke
Sorry for the bad explanation Steve. I've seen examples of this that are enlarged to nearly the same size as the background colour. So the background just appears as a border.

Typical, can't find an example at the moment :(

Duke

Re: Realtime gauges v1.0.0.3 available for download

Posted: Fri 10 Feb 2012 11:39 pm
by gemini06720
duke wrote:Typical, can't find an example at the moment...
Duke, how about the following to links/locations for examples (not yet 100% reliable as I am completely/still rebuilding my house/office computer network and the server can/could be offline at times):

Tzouhalem-Maple Bay Weather

Silverlight RealTime Weather

Re: Realtime gauges v1.0.0.3 available for download

Posted: Sat 11 Feb 2012 6:40 am
by duke
and give a link to an example?
I thought some one might be along to offer an example, thanks. ;)
Duke

Re: Realtime gauges v1.0.0.3 available for download

Posted: Sat 11 Feb 2012 10:57 am
by gemini06720
duke wrote:I thought some one might be along to offer an example, thanks. ;)
Yes, but is that what you were inquiring (writing) about... :D

Re: Realtime gauges v1.0.0.3 available for download

Posted: Sat 11 Feb 2012 12:11 pm
by duke
gemini06720 wrote:
duke wrote:I thought some one might be along to offer an example, thanks. ;)
Yes, but is that what you were inquiring (writing) about... :D
Yes, as apposed to the regular "skinnier" look with borders @ Cumulus Realtime

Duke

Re: Realtime gauges v1.0.0.3 available for download

Posted: Sat 11 Feb 2012 3:39 pm
by Mapantz
*delete*

Re: Realtime gauges v1.0.0.3 available for download

Posted: Sun 12 Feb 2012 5:41 am
by gemini06720
OK, Duke... ;)

This is the code you have in the template used to display the Silverlight RealTime screen:

Code: Select all

<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="700px">
This is the code I have in the Weather-Blues template used to display the Silverlight RealTime screen:

Code: Select all

<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="832" height="890">
Through the years, I have learned not to use a percentage value for either the width or the height of any Adobe Flash or Microsoft Silverlight file formats.

832 pixels appears (at least on the different monitors I use in my home/office) to be the minimum width of the Silverlight RealTime screen - anything less will produce the navigation bar on the right side of the object. But, it is not just a matter of adjusting the width - the height must also be adjusted or navigation bars will be produced both to the right and the bottom of the object.

If you are still unsure, here is the code I use to display this Silverlight RealTime screen:

Code: Select all

    <div id="content">
      <h2>Silverlight RealTime Weather</h2>
      <table border="0" cellpadding="10" style="padding: 20px 0 0 45px;">
        <tr>
          <td>
            <div id="errorLocation" style="font-size: small; color: gray;"></div>
            <div id="silverlightControlHost">
              <object data="data:application/x-silverlight" type="application/x-silverlight-2" width="832" height="890">
                <param name="allowHtmlPopupWindow" value="true" />
                <param name="autoUpgrade" value="true" />
                <param name="background" value="silver" />
                <param name="enableAutoZoom" value="true" />
                <param name="enableGPUAcceleration" value="true" />
                <param name="enablehtmlaccess" value="true" />
                <param name="enableNavigation" value="all" />
                <param name="maxframerate" value="60" />
                <param name="minRuntimeVersion" value="3.0" />
                <param name="onerror" value="onSilverlightError" />
                <param name="source" value="CumulusRealtime.xap?v=1.0.0.4" />
                <a target="_blank" href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
                  <img src="http://go.microsoft.com/fwlink/?LinkId=108181"
                      alt="Get Microsoft Silverlight" style="border-style: none" />
                </a>
              </object>
              <iframe style="visibility: hidden; height: 0; width: 0; border: 0"></iframe>
            </div>
          </td>
        </tr>
      </table>
    </div><!-- end id content -->

Re: Realtime gauges v1.0.0.3 available for download

Posted: Sun 12 Feb 2012 10:34 am
by duke
It was on my to do list to have a sneeky look at your code today ;) .
Through the years, I have learned not to use a percentage value for either the width or the height
I actually tried various % and px figures here and was unable to effect the width only the height. I try to stay with px as I found % can have all sorts of strange results not just with this type of application.

So what was i doing wrong? The addition of this line from you code appears to be the secret:
<param name="enableAutoZoom" value="true" />
832 pixels appears (at least on the different monitors I use in my home/office) to be the minimum width of the Silverlight RealTime screen
I have a maximum of 810 due to my page layout so I have a nav bar at the bottom but it looks a lot better than before
Cumulus Realtime

Perhaps there is a way to eliminate the nav bar?

Thanks for your help with this one, I wouldn't have got their on my own :bash: .

Duke

Oh.....
Blumentals
:clap:

Re: Realtime gauges v1.0.0.3 available for download

Posted: Sat 25 Feb 2012 11:58 am
by david3
Just got these Silverlight realtime gauges working... It's pretty cool.

http://www.sfcweather.com/wxrealtime.php

Re: Realtime gauges v1.0.0.3 available for download

Posted: Wed 19 Mar 2014 11:39 pm
by drdscly
Slightly off topic - but how does one get the stickers I see here into a post. Can I just put the php code directly in the post?

Mike

Re: Realtime gauges v1.0.0.3 available for download

Posted: Thu 20 Mar 2014 6:55 am
by duke
This sure is an old topic you posted in :o

But, in answer to your question Cumulus PHP-GD Banner

Re: Realtime gauges v1.0.0.3 available for download

Posted: Wed 12 Nov 2014 5:18 pm
by mareid123
Is there any way possible to take this and make it run as an "app" on your local PC, outside of any browser?

Re: Realtime gauges v1.0.0.3 available for download

Posted: Wed 12 Nov 2014 5:45 pm
by steve
Good question. Later versions of Silverlight did allow the creation of "out of browser" applications, but I don't think I ever got around to doing that with this. I don't think I have the ability to build the code now, as I didn't keep up the subscription for the components that it uses (it was costing me about £1000 per year) and I don't think the last version that I have a licence for will build against the current libraries.

Silverlight itself seems to be pretty much dead now, MS seem to have abandoned it in favour of HTML5.

Re: Realtime gauges v1.0.0.3 available for download

Posted: Sun 15 Feb 2015 2:27 pm
by wetterfrosch1971
steve wrote:
Silverlight itself seems to be pretty much dead now, MS seem to have abandoned it in favour of HTML5.
Hi,

I´m from Germany and in Germany is silverlight much dead.
I love the realtime gauges but no one can see it, because in Germany has no one silverlight on the Computer.

Please create a new Realtime gauges Version in a other Format, that would be so great.

Many thanks.
Frank