Controlling display order of two controls?

Is there a way to ensure one control is display over another control?

There is no z-order property or order of creation in the json file that worked for me. I needed to overlay one control on another.

what I do: set one of the controls elsewhere, then in lua move it to the same slot as the other control. With setVisible you then swap visibility between the two. Works like a charm.

That works until youy want to draw over another control but still see it…

you need to hide the one and show the other !

That works until you want a true overlay.

not sure what you mean. What is a ‘true’ overlay ?

Drawing over another control. You see both at the same time.

The term overlay means you lay something over something else, so it’s covered. Like what a physical overlay does on a synth , it covers the text below.
So a ‘real’ overlay doesn’t show what is beneath. Hence the confusion.

Anyway, AFAIK what you look for, like transparently having multiple controls on the same slot, is not possible. It would also come with of User Interface complexities. If you want to combine multiple parameters with one knob, you could build your own control for that.

The current set of E1 controls (UI components) clears its bounding box with a black fill. Supporting transparency and stacking multiple controls on top of one another would be cumbersome.

There is a possibility that this could change with the MK3, as it would use a completely different graphics renderer. Unfortunately, the current situation here (my personal) will most likely delay the MK3 or could even result in its production being cancelled altogether. I’ll share more details in another thread.

1 Like

Thanks. This does not feel like a top priority.

1 Like