Page 1 of 1

Overlapping labels?

Posted: Mon Dec 14, 2015 12:31 pm
by Brian
Can labels be defined to overlap? What happens when you update a label that overlaps another one? For example, I have a frequency display, and if you try to go outside certain bounds, a pop-up message needs to appear overlapping that frequency. Is this possible? What does the background do when you do something like this?

Re: Overlapping labels?

Posted: Mon Dec 14, 2015 3:00 pm
by Daniel Divino
Hello Brian,

Labels have been set up in a way that will allow the overlapping that you are describing. If two or more labels occupy the same space and overlap, the label that was last updated will be brought to the front, overlapping all other labels behind it. As such, labels will be displayed in order of the most recent updates.

In order to implement an error message, you can create a label that overlaps your frequency counter label during startup.
IMAG0064.jpg
IMAG0064.jpg (2.93 MiB) Viewed 6931 times
You can proceed to update your frequency label as needed, then once an error is detected you can write to the hidden label, and it will pop up, overlapping the frequency counter.
IMAG0065.jpg
IMAG0065.jpg (2.81 MiB) Viewed 6931 times
IMAG0066.jpg
IMAG0066.jpg (2.91 MiB) Viewed 6931 times
Once the error is resolved, you can send a null character to the error label, and start to update your frequency counter once again.

When writing the script to update the error label, I drew a filled rectangle that was a little larger than the error message itself before updating the error label. This would create a border that easily distinguishes the error message (see IMAG0066.jpg).

-Daniel