Normally the IDE gives a warning that “Container Control Arrays are not supported”, if you try to give two instances the same name.
There is also no possibility for a Control Set in the IDE for Container Controls.
Accidentally I discovered a way to dimension Container Controls anyway.
I created an Integer “Index”, then checked it in “Inspector Behavior” and suddenly in the IDE the possibility pops up to move it to a Control Set. A second instance could also be included in this Control Set. Resulting in two CCs: Kaart(0) and Kaart(1).
The Container Control has Integer Arrays, String Arrays, Canvas Arrays, etc. so it’t not a simple one, but everything seems to work well.
For those who are interested…
Just FYI figuring out a way around the IDE preventing you from creating an array of container controls does not mean that theyre suddenly supported. Its certainly possible that we could make an internal change later which will break this technique.
Another problem is that if you add several bevel buttons to a set and add events to them all instances use the same implementation of that event. This is not true for a “container control set” that you’ve created as described. For instance, if you add several items this way and they are all in the same “set” you will not get the INDEX parameter sent so you know which one was clicked, etc.