Viewing inherited scripts
If an inherited object or control has a script defined only in
an ancestor, no script displays in the Script view.
Script icons in the second drop-down
list
The second drop-down list in the Script view indicates which
events have scripts written for an ancestor as follows:
-
If the event has a script in an ancestor only, the script
icon next to the event name in the second drop-down list is
displayed in color. -
If the event has a script in an ancestor as well as in the
object you are working with, the script icon is displayed half in
color.
Script icons in the third drop-down
list
The third drop-down list in the Script view shows the current
object followed by each of its ancestors in ascending order. The icons
next to object names indicate whether the object has a script for the
event selected in the second drop-down list as follows:
-
If an object is the highest class in the hierarchy to have a
script, a transparent script icon displays next to its name. No
icon displays next to the names of any of its ancestors. -
If an object does not have a script for the event but it has
an ancestor that has a script for the event, the script icon next
to its name is displayed in color. -
If an object has a script for the event, and it has an
ancestor that also has a script for the event, the script icon
next to its name is displayed half in color.
To view an ancestor script
-
In the Script view for an inherited object, select the
object itself or a control in the first drop-down list, and the
event whose script you want to see in the second drop-down
list.The Script view does not display the script for the
ancestor. No script displays. -
In the third drop-down list in the Script view, select an
ancestor object that has a script for the selected event.The Script view displays any script defined in the ancestor
object. -
To climb the inheritance hierarchy, in the third drop-down
list, select the script for the grandparent of the current object,
great-grandparent, and so on until you display the scripts you
want.The Script view displays the scripts for each of the
ancestor objects. You can traverse the entire inheritance
hierarchy using the third drop-down list.