I decided to use a splash screen as my About for my program (because I thought it would be easiest), and the code looks like this:
SplashAbout = new wxSplashScreen(IMG_About,
wxSPLASH_CENTRE_ON_SCREEN|wxSTAY_ON_TOP,
-1,
this,
SPLASH_About,
wxDefaultPosition,
wxDefaultSize,
wxSIMPLE_BORDER|wxSTAY_ON_TOP);
When the user clicks the 'About' button, the splash screen opens. All good... until the user clicks the 'About' button again while the splash screen is open and it opens another splash screen, then I have multiples of the same splash screen open! Is there a way to disable the use of the main window, or somehow check if there is already an open instance of the splash screen and have it close it?
Thanks |