wxMac: Modal dialog in main frame constructor
Stefan Csomor
csomor at advancedconcepts.ch
Sun May 4 23:00:48 PDT 2008
Hi
I think it should work, although for a splash screen wxApp::OnInit would
probably be more suitable.
The problem is not the code until the dialog shows up, but only later when
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
problems would be to debug OnPaint methods, or to put breakpoints in
wxMessageDialog::ShowModal
HTH
Stefan Csomor
On 04.05.08 23:34, "Derek Lee-Wo" <dleewo at gmail.com> wrote:
>> this is most probably an assert/error message trying to make itself heard,
>> you could try to see in the debugger what the error might be ...
>
> I was running a release build and from what I can tell from the docs,
> the asserts shouldn't be happening. Anyway, I also tried a debug
> build and unfortunately the debugger doesn't show anything.
>
> I also stepped through the code all the way leading up to the call to
> ShowModal() and it all looks good until then, but once I step over the
> ShowModal(), the dialog displays and then I get the blank message
> window.
>
> Can I assume then that displaying a modal dialog in the main frame
> constructor is *supposed* to work in wxMac?
--
Advanced Concepts AG
Software-Engineering
Heldweg 10
CH-8475 Ossingen
Switzerland
phone:+41 52 245 0 245
fax:+41 52 245 0 246
http://www.advanced.ch
mailto:csomor at advanced.ch
More information about the wx-users
mailing list