1) The window embeds a myCC as ContainerControl.
2) Iterating over the window.control(i) and testing if control
(i) isA ContainerControl does not work.
3) testing against "myCC" only would work if the test is done
with an underscore:
if window.control(i).name = "_myCC"
4) Having determined window.control(i) you cannot cat it to a
CC, you can only cast it to a embeddedWindowControl. Unfortunately,
the embeddedWindowControl does not define an Operator_Convert to
the CC.
Is this a shortcoming, or did I overlook something?
I don't know, but I see that the Language Ref says that Window and
Object are the parents of ContainerControl in the class heirarchy,
rather than Control, so the behavior you describe seems consistent
with that. The cast to embeddedWindowControl is interesting: I
thought that no longer existed.
Best,
Jack
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>