Is there an event that's triggered on opening a window

We would like to run a DB script that does some updates to the database tables before we load them into our application. Is there an “on load” type event we coud use?

On load of a project or a window?

For the project: use the global startup script

For a window: Use the window’s internalFrameOpened event for when the window is first loaded, or internalFrameActivated for when it is opened (even from the window cache)

Hope this helps,