Hi SViz,
I need some more information. Is it possible for the child object to call a parent object script function from a child object?
Some background on what I'm trying to achieve......
My widget displays information from some medical systems. As the user views a patient in one system, I get an patient id number from the registry and check to see if the patient exists in another system through a web service. I do all this checking outside of the widget in a COM dll and just return the widget a comma-delimited string of values for it display or alter its appearance. So as you edit the record for Fred Smith in one system, my widget changes to a green light with Fred Smith's name indicating they exist in the other system. That part's all working.
My widget consists of a container which has 2 children inside it.
One child is an image layer that displays traffic lights (green, amber, red). These change depending on whether the patient info exists in the target system.
The other child is a text layer. It displays the patient's name.
The container currently has no script. The child objects each have their own script that runs a timer to check every second whether they need to change the information they are displaying.
I have put your code on the container to make it popup from the edge of the screen, but I still need to trigger the showBar function from one the child object. Is it possible for the child object to call a parent object script function?
Perhaps I need to move the script logic from the child objects into the parent and let the parent container do all the processing and the container sets the image and text of its children.
Let me know if you need more info. Thanks for your help so far.
Mark