One instance of a Component child of more Components


#1

Hi…

Documentation says that with AddChildComponent If the component passed-in is already the child of another component, it’ll first be removed from that..

Is it possible to have the same instance of a Component to get visible (to be a child) into (of) 2 different components??

thanks


#2

are you a child of two mothers ? eheh :slight_smile:


#3

How can you know it??? :smiley:
So… it’s really impossible???


#4

with the current implementation yeah !
every component could have one and only one parent.

may i ask what u need this for ? probably there are thousands other ways to go for achieve what u want to do…


#5

Yes, allowing multiple parents would turn the whole design into an absolute nightmare! I don’t think there’s any windowing toolkit that would support that kind of thing.


#6