Meaning Red Outline? Label Set

API 2 / Mac / 2021 R3.1 / Desktop Application
I have a few control sets. Once is a set of white Rectangles. Another is a set of labels. In this case, those labels all contain the text “tip info”. The labels are all on top of their respective rectangles arranged in a grid. This can be seen in the IDE.
Screen Shot 2021-12-18 at 5.55.14 AM

Sometimes, if a “tip info” member of the control set is selected, a red outline appears around another member of that control set. This can be seem below. The fourth member is selected and the second member has a red outline around it.

Screen Shot 2021-12-18 at 5.34.04 AM

In the application, this correlates with some of them being “invisible”. The fourth can be seen to be invisible below.

Screen Shot 2021-12-18 at 6.12.40 AM

What does this mean and how do I correct this. This pattern is associated with other peculiarities. In the advanced settings it (the fourth member) does not have a Tab Index unlike the “normal ones”.

Screen Shot 2021-12-18 at 5.39.53 AM

The tools to arrange its “position” in the hierarchy are unavailable.

Screen Shot 2021-12-18 at 5.35.45 AM

There is another forum message that makes reference to the “mysterious” red outline. This was in an iOS app. On commenter said:

If you overlap the controls the Parent will be the bottom control. When this happens there is a red highlight. I would check the parent property and you will probably see that it is one of your other controls instead of the View.

I do not know what this means. “Parent?”; “View?”. All the members of the “tip info” label set have the same Super as best I can tell. Is there a way to correct this?

Make a new project, drag a canvas into the project. Now drag a label over the canvas.

The canvas (or a container in the screenshot) now has a red line. That’s the parent of the label.

Overlapping controls always has sucked. I’ve just implemented a new control where the basics is a single canvas on a container. The benefit is that I can draw everything within one canvas and don’t have to think about x and y offsets. Then I do an embed within into a new container.

1 Like

The canvas (or a container in the screenshot) now has a red line. That’s the parent of the label.

So somehow, in the course of making the label control set, I managed to create some members inside other members?? So even though they now have different locations and no overlap, one remains the “parent” of the other and this relationship is indestructible?

Thanks for replying, by the way.

Yes, it happens.

No, right click on the “child” and select “Unparent”.

1 Like