Forum Discussion
HBeurdouche
14 years agoNew Contributor
Hello Julia,
sorry for the late answer,
1. Does the FindChild method return a correct MainFrame object that has the needed child objects? Is the ChildCount property of the result object greater than zero?
-The object has not all the child objects, it has only those which are also in the properties
-ChildCount is greater than zero (same as in ObjectBrowser)
2. Do the parameters you use in the FindChild method to obtain the MainFrame object identify the object uniquely?
-yes (I move to ClrFullName and Exists properties)
3. How do you obtain the MainFrame object's child objects? Do you address them by their names or mapped names? Have you tried obtaining them by using the Child, WaitChild or WaitNamedChild method?
-I redo a FindChild operation
-MappedName and Exists properties (wildcards in MappedName)
-I tried with waitChild method and I had the same problem
sorry for the late answer,
1. Does the FindChild method return a correct MainFrame object that has the needed child objects? Is the ChildCount property of the result object greater than zero?
-The object has not all the child objects, it has only those which are also in the properties
-ChildCount is greater than zero (same as in ObjectBrowser)
2. Do the parameters you use in the FindChild method to obtain the MainFrame object identify the object uniquely?
-yes (I move to ClrFullName and Exists properties)
3. How do you obtain the MainFrame object's child objects? Do you address them by their names or mapped names? Have you tried obtaining them by using the Child, WaitChild or WaitNamedChild method?
-I redo a FindChild operation
-MappedName and Exists properties (wildcards in MappedName)
-I tried with waitChild method and I had the same problem
4. What parameters do you use to obtain the MainFrame object's child objects by using the FindChild method?
PropNames = Array("MappedName","Exists");
PropValues = Array("*ClrUiTreeCtrlInput*","true");
clrUiTreeCtrlInput = MainObject.FindChild(PropNames,PropValues,4);
I found a way to solve my problem: I used NameMapping
I improved the NameMapping criteria for the MainFrame Object and I do not need anymore a findchild to catch the MainFrame Object,
it has the needed child object, methods etc ...