#include <TimedDialogEnder.h>
Protected Member Functions | |
virtual void | DestroyTimer () |
Stop and destroy timer. | |
virtual void | OnTimer (wxTimerEvent &event) |
Timer event handling functionality with "main" functionality. |
Internally a timer component is used to periodically check if a window with the given caption exists. If so, it is tried to close it with the given return code. After successfully closing the window, the timer is stopped and destroyed. The reason why this works for wxMessageBox is because it is inherited from wxMessageDialog class and popped up by calling ShowModal().
Supports debug logging with trace mask "TimedDialogEnder".
TODO/REMARK: Works currently only under M$ Windows!
Definition at line 38 of file TimedDialogEnder.h.
void wxTst::TimedDialogEnder::DestroyTimer | ( | ) | [protected, virtual] |
Stop and destroy timer.
Moved out from destructor to allow reuse in case of successful closing of window.
Definition at line 53 of file TimedDialogEnder.cpp.
Referenced by OnTimer().
void wxTst::TimedDialogEnder::OnTimer | ( | wxTimerEvent & | event | ) | [protected, virtual] |
Timer event handling functionality with "main" functionality.
event | notifying timer event |
Definition at line 67 of file TimedDialogEnder.cpp.
References DestroyTimer().