wxMac: Modal dialog in main frame constructor

Derek Lee-Wo dleewo at gmail.com
Mon May 5 05:02:52 PDT 2008


Hi,

> I think it should work, although for a splash screen wxApp::OnInit would
> probably be more suitable.

It's not actually a splash screen I'm trying to create.  It's for when
the app is run the first time, I pop up a dialog to gather a few
settings.

BTW, I also tried launching the dialog in wxApp::OnInit(), but I saw the
same problem.

> the message box pops up, then the message loop gets things wrong. I've
> seen
> this in code when code was ported from msw or gtk and was looking for
> some
> images, which it couldn't find in the mac build. So one typical source
> for

Well, I did actually see this issue with some wxIcons I was creating and
the Mac version couldn't find my PNG files.  I did see that error just
fine and once I copied over the files, that error went away.

> problems would be to debug OnPaint methods, or to put breakpoints in
> wxMessageDialog::ShowModal

Thanks for this suggestion.....I'll try these two approaches.

Thanks
Derek


More information about the wx-users mailing list