Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Overlay questions
I'm in the process of a complete interface redesign and before I go too far I have some generic questions about how overlays function. First, is there any issue with having multiple overlay areas on a template in terms of performance or useability? I'm considering 4 separate overlays on one template two of which I'd like to have interact with each other.

Let's assume I have two overlay areas on the template (overlay1 and overlay2). Is it possible to load a new template into overlay1 based on a button in overlay1? What about a button in overlay1 template causing a new template to load in overlay2?

I know I can load new templates into an overlay based on command buttons on a template but I am trying to determine if it is possible for buttons on existing overlay templates to load new templates in either the original overlay or a different one. I guess I'm looking for the ability to have anything call anything regardless of where it is located. Fat chance huh?
1.) To load a new template into an overlay using a button on the template in that same overlay use the IntfViewer::LoadNewTemplate command.

2.) To load a new template in Overlay2 from a template in Overlay1 use the IntfViewer::LoadSiblingOverlay.
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
In my original post I questioned performance of multiple overlays and it appears doing this is fairly slow on a very fast PC. I'm not looking forward to seeing what it's like on a Sammy.

I suppose slow is a relative term. It probably takes about a second to load two sibling overlays but this has a very slow look to it. Can overlays be loaded into a container based on some global variable on the base template? If so that might be faster than making a call to load several overlays based on a button click.
There shouldn't be anything inherently slow about loading overlays. If they load slowly then probably everything is running slowly for some reason. They will though load sequentially. I.e. one has to download its template and initialize, then the next one, and so on.
Dean Roddey
Explorans limites defectum
I think that is what I'm seeing and it just looks slow. What about loading several overlays on the base template and hiding them until needed. Could these be tied to states to become visible or invisible based on a field value? This would tie one template to each overlay and then cycle the overlay container and not the overlay template based on the value of the field.

I'm just trying to get things to look a little more responsive and I know there have to be some tricks to do this. The initial load time of the base template with all the extra overlay containers is not important.
You could certainly mark the overlays as initially invisible and then in the OnLoad of the parent template, as the last thing you do there, make them visible.

And, when you say they take a few seconds, do you mean to visibly display, or to get device state info displayed?
Dean Roddey
Explorans limites defectum
I suppose it is a combination of both. I'm trying to fill two different overlays one of which has data linked to a driver field and the other does not. But in all cases one will have device state info and the other may or may not.

Is device state info populated on an overlay template if the container is loaded but not visible?
dgeffs Wrote:Is device state info populated on an overlay template if the container is loaded but not visible?

Yeh, it's all still be loaded and being gotten ready, even if not visible.
Dean Roddey
Explorans limites defectum

Possibly Related Threads…
Thread Author Replies Views Last Post
  Philips Hue set up questions Deane Johnson 42 16,360 01-01-2016, 01:09 PM
Last Post: jkmonroe
  Simple Clarification Questions Deane Johnson 5 3,164 01-03-2015, 03:20 PM
Last Post: Deane Johnson
  Questions on Philips Hue Deane Johnson 1 2,152 11-21-2014, 11:27 AM
Last Post: Dean Roddey
  Overlay in an Overlay triggered by Widget Deane Johnson 4 3,772 11-09-2014, 10:29 AM
Last Post: Deane Johnson
  Copy and paste an Overlay Andre 2 2,503 12-23-2013, 03:06 PM
Last Post: Andre
  Z-Wave Door Locks & Other Z-Wave Questions jbh5000 18 7,980 06-13-2013, 11:51 AM
Last Post: jbh5000
  Basic Questions RichardU 7 4,399 09-01-2011, 09:36 AM
Last Post: Dean Roddey
  CQC for me? iPod touch interface questions Mukha 14 6,350 05-03-2011, 10:42 AM
Last Post: potts.mike
  APC S20 + SNMP observations and questions SamVimes2 14 5,759 01-21-2011, 03:25 PM
Last Post: SamVimes2
  Upgrade questions - 2.4.26 to 3.2 MikeA 9 4,120 12-29-2010, 10:06 AM
Last Post: klindy

Forum Jump:

Users browsing this thread: 1 Guest(s)