# More overlay problem

**URL:** <https://forum.inductiveautomation.com/t/more-overlay-problem/1966>\
**Category:** Ignition\
**Created:** [June 22, 2010, 7:17pm UTC](https://forum.inductiveautomation.com/t/more-overlay-problem/1966 "2010-06-22T19:17:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [June 22, 2010, 7:17pm UTC](https://forum.inductiveautomation.com/t/more-overlay-problem/1966/1 "2010-06-22T19:17:24Z")

</div>

I have created my own control.  
It is a container with a two labels. The container has 4 dynamic properties to hold a tag name, value, format and alert status.

The first label displays the tags tootip.

The second label displays the formatted value (in red if in alarm). It also displays any overlay. This is done by binding the label status to the tag status.

Other then the tag name which is entered via plain text, all bindings are indirect with the path coming from dynamic properties on the root container.

The problem is the overlay does not always show up when the window is opened. There seems to be a race condition when the window is opened that allows the components to be drawn before all values are derived/calculated.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [June 23, 2010, 3:49pm UTC](https://forum.inductiveautomation.com/t/more-overlay-problem/1966/2 "2010-06-23T15:49:55Z")

</div>

> [@Robert](#):
>
> The second label displays the formatted value (in red if in alarm). It also displays any overlay. This is done by binding the label status to the tag status.

Can you explain these bindings in more detail? Specifically: "label status to the tag status"

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [June 24, 2010, 10:10pm UTC](https://forum.inductiveautomation.com/t/more-overlay-problem/1966/3 "2010-06-24T22:10:16Z")

</div>

Sorry, I mean the tag Quality is bound to the label Data Quality.

I have attached the serialized component.  
[Tag label.txt](https://us1.discourse-cdn.com/inductiveautomation/original/1X/549a00e9315d1e7601b00372e32195f22fb7db13.txt) (31 KB)

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [June 25, 2010, 6:27pm UTC](https://forum.inductiveautomation.com/t/more-overlay-problem/1966/4 "2010-06-25T18:27:58Z")

</div>

If you’re directly binding to the data quality of the label, you need to make sure and check “Overlay Opt-out” on all of your other bindings on that label to avoid the race condition.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [June 25, 2010, 8:56pm UTC](https://forum.inductiveautomation.com/t/more-overlay-problem/1966/5 "2010-06-25T20:56:06Z")

</div>

That made things work much better. Tell Travis to add that to the course.

Thanks
