So it seems that the Window property of RectControl returns the ContainerControl that contains that control unless it’s the true window and that will mean it uses the encapsulating window.
Does this mean that if the TrueWindow property does not return the same value as the Window property then that property actually returns a ContainerControl? And if that’s the case, does that mean you can cast a window to a ContainerControl?
That’s what I meant but that’s good to know. Out of interest, is it possible to have your own classes that can be casted to other classes without inheriting from them? Could you use operator_convert for example? Thanks
Fair enough. But it appears that the ContainerControl is not a subclass of a window and I am curious how that is possible? Just something that the framework allows because it’s built-in is more first guess? Thanks