Remove dynamically created container from within container

I’m trying to make an interface that is somewhat similar to Find Any File’s.

I’m doing a search window with different search fields where criteria can be added and deleted. As starting point I use ContainerControl List from @Christian Schmitz. I can add and remove containers from the outer container just fine. But the container should be able to remove itself.

Normally, I would finagle this with Add Handlers. The sub container only has a list of containers in the parent container.

Of course, the child container could send a notification to the parent container. And the child container probably needs to know it’s index. But is there a more simple way with Add Handler?

First time trying the project upload:
ContainerControl List.xojo_binary_project.zip (13.1 KB)

I don’t really understand what you mean, but why didn’t you do that like this? :

https://nözl.de/vdhfy

1 Like

Thanks! That was exactly what I was looking for.

Ohh, ok. Then here you go :wink: