Trixology

WeatherCat => WeatherCat General Discussion => Topic started by: MrDave on July 28, 2018, 02:42:11 PM

Title: Multiple Gauges in One Window
Post by: MrDave on July 28, 2018, 02:42:11 PM
Does anyone know how to do this?  Multiple gauges in a single window frame as in the attached.

Thank you.

MrDave

Title: Re: Multiple Gauges in One Window
Post by: xairbusdriver on July 28, 2018, 08:26:11 PM
A "single frame" where? On a web page or your computer screen?

In a web page it is super simple. Just create a div (if you want to keep them together in one space) and list them thusly:
Code: [Select]
<div class="centered_content_group shadow-box">
   <img class="narrow_gauge" src="customgauge5.png"
        alt="Gauge-Wind Chill">
    <img class="narrow_gauge" src="customgauge6.png"
        alt="Gauge-Dew point">
</div>
That includes some CSS to define the size and keeps them on the same horizontal plain, create the size needed for the containing div "box" and adds a show to it. In this "box" are only two gauges. In other divs, there are 'normal' sized gauges and one or two "narrow_gauge" gauges.
I use a simple text file added to the Custom Files list that contains theWC tags for the gauges I've defined. WC parses that file and creates and uploads the images to the site in the root area, thus the 'src' name is the same as the WC created image file name. [computer]

As for displaying on the Desktop, I'm thinking you can just leave their creation/edit window open, use the minimize arrow, and adjust the size as needed. You can save a bit of space by over-lapping the window's title bar. And doing it this way also leaves a white background around the gauge. There are ways to change a window's background, but I'll leave that task as an exercise for the reader. [lol]
Title: Screenshot with gauges without window. (Re: Multiple Gauges in One Window)
Post by: elagache on July 28, 2018, 10:03:50 PM
Dear MrDave and WeatherCat slick user-interface fans,

Since this is your first posting, let me welcome you to the WeatherCat forum! . . . (http://www.canebas.org/WeatherCat/Forum_support_documents/Custom_emoticons/welcome_smiley.gif)

Does anyone know how to do this?  Multiple gauges in a single window frame as in the attached.

I'm assuming you are referring to the screenshot that is on this page of the main Trixology website:

https://trixology.com/weathercat/ (https://trixology.com/weathercat/)

The frame is indeed being created by the WordPress rendering of the webpage.  The gauges are appearing without any enclosing window on the screen.  You can take a custom gauge and make the window disappear by double-clicking on it.  Repeating the process will give you the window back. 

All this is described in the WeatherCat manual starting on page 38.

What X-Air is describing is how you can create your own gauge rendering on a custom webpage.  I'm not sure that is what you were after though.

Once more welcome!  :)

Cheers, Edouard  [cheers1]
Title: Re: Multiple Gauges in One Window
Post by: xairbusdriver on July 29, 2018, 12:44:58 AM
Please accept my apology for not noting your new arrival!  [blush] My bad!!

Thanks to your question, however, you have made me aware of information I did not know! That one reason this site is great! And thanks, again, to the WC dev for making it possible to hide the window background! I?ve never seen that capability in any other app! ThU5:-)
Title: Re: Multiple Gauges in One Window
Post by: Blicj11 on July 29, 2018, 02:41:41 AM
Welcome to the forum MrDave.
Title: Re: Multiple Gauges in One Window
Post by: MrDave on July 29, 2018, 01:09:50 PM
Thank you Global Moderator Storm, xairbusdriver, elagache and all others.

Yes, I am a brand new WeatherCat user and forum member.  I am unencumbered by knoledge.  I am currently using the only the creation/edit window in the app itself.  Since my audience is, and will remain small, I wasn't sure creating a web site was worth the extra effort and possible trouble.  I will continue to evaluate that.

I've also learned from my very first post that my user name, MrDave, is woefully plain for this forum.  It's the name given to me by the neighbor kids, and it just sort of stuck.

I can already tell, you all are a very helpful bunch who will be interesting to work with,  Thank you in advance.
Title: Re: Multiple Gauges in One Window
Post by: xairbusdriver on July 29, 2018, 07:41:51 PM
Any friend of the neighborhood kids is a friend of mine! ThU5:-)