Hi there,
is there a way to notice, if a wxMessageBox pops up during run time?
Background: Certain configurations (ini files) of the program lead to message boxes showing up to inform the user about the situation.
However, when unittesting, this behaviour stops the whole testing process until someone hits the OK Button, which I would like to avoid...
Thanks - Richard
Notice if wxMessageBox pops up
-
- Experienced Solver
- Posts: 69
- Joined: Wed Feb 27, 2019 7:17 am
Re: Notice if wxMessageBox pops up
Not possible. Maybe wrap all wxMessageBox calls in a function that you can bypass with a command line switch for testing.
Use the source, Luke!
Re: Notice if wxMessageBox pops up
Hi,
Or use #ifdef.
Thank you.
Or use #ifdef.
Thank you.
-
- Experienced Solver
- Posts: 69
- Joined: Wed Feb 27, 2019 7:17 am
Re: Notice if wxMessageBox pops up
Thanks anyway!