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
-
- Moderator
- Posts: 19164
- Joined: Fri Apr 21, 2006 8:03 pm
- Location: $FCE2
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!
-
- Part Of The Furniture
- Posts: 7481
- Joined: Sat Apr 16, 2005 7:22 am
- Location: USA, Ukraine
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!