| Home | Previous Lesson: Overriding Ancestor Script Next Lesson: Inheriting Menu Objects |
Sometimes, you may want to execute a script for the descendant window before the ancestor script is executed. For that, follow these steps:
Call Super::<Event Name> |
The SUPER pronoun refers to the same object in the ancestor. You can also execute an event of another control in the ancestor by using the following syntax:
Call Super'<Control Name>::<Event name>
For example, to execute the script for the OK CommandButton in our w_about window from the close event of a descendant window, we would use the following code:
Call Super'cb_ok::clicked
| Home | Previous Lesson: Overriding Ancestor Script Next Lesson: Inheriting Menu Objects |