Forum Discussion

sastowe's avatar
sastowe
Super Contributor
13 years ago

understanding onoverlappingwindow event params

I am looking for confirmation of my understanding. I want to handle a pesky overlapping window that otherwise would not interfer with my test. But since it is an unreproducable application crash, I cannot easily test my understanding. So merrily I test along with kmy application under test. And a crash occurs, generating a window (which just so happens to be a dwwin aka Dr. Watson window).



So an OnOverlappingWindow event is generated to which I wish to respond in the event handlers.  The parameters passed in are:



Sender: The event control that processes the event. Is this self referential to the OnOverlappingWindow event itself? What does this mean?



Window: Is this the window on which the offending window overlaps?



OverlappingWindow: The offending window which I wish to deal with. This is the only part of the help file that seems clear to me. Be I dense?



Is my understanding correct?



S

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Stephanie,


     


    Refer to the "OnOverlappingWindow Event" article. It describes parameters of the OnOverlappingWindow event handler. Besides that, look at the following sample shipped along with TestComplete:


    <TestComplete Samples>\Event Handling\Scripts