wxDialog ShowModal freeze on macOS
wxDialog ShowModal freeze on macOS
Hi,
I'm currently developing dynamic library used in other aplication (aplication has no GUI). In my lib I have used IMPLEMENT_APP_NO_MAIN macro. Lib can show few frames and dialogs.
On Windows everything works fine, but on MacOs some dialog freezes (dialog is visible but not responding).
But It freeze only if there is no top window.
PinDialog* dialog = new PinDialog(pinTypeStr);
dialog->ShowModal();
I realy dont know what might be the problem, can anyone help me please?
I'm currently developing dynamic library used in other aplication (aplication has no GUI). In my lib I have used IMPLEMENT_APP_NO_MAIN macro. Lib can show few frames and dialogs.
On Windows everything works fine, but on MacOs some dialog freezes (dialog is visible but not responding).
But It freeze only if there is no top window.
PinDialog* dialog = new PinDialog(pinTypeStr);
dialog->ShowModal();
I realy dont know what might be the problem, can anyone help me please?
Re: wxDialog ShowModal freeze on macOS
Hi,
Is main application code available?
Where do you create the dialog?
What OSX version are you testing it on?
How did you compile the library?
So if you create a hidden window and make it a parent of the dialog - it works?
Is dialogs sample works for you?
Thank you.
Is main application code available?
Where do you create the dialog?
What OSX version are you testing it on?
How did you compile the library?
So if you create a hidden window and make it a parent of the dialog - it works?
Is dialogs sample works for you?
Thank you.
Re: wxDialog ShowModal freeze on macOS
did you solve it?ppsmurf wrote: ↑Tue Jan 22, 2019 3:25 pm Hi,
I'm currently developing dynamic library used in other aplication (aplication has no GUI). In my lib I have used IMPLEMENT_APP_NO_MAIN macro. Lib can show few frames and dialogs.
On Windows everything works fine, but on MacOs some dialog freezes (dialog is visible but not responding).
But It freeze only if there is no top window.
PinDialog* dialog = new PinDialog(pinTypeStr);
dialog->ShowModal();
I realy dont know what might be the problem, can anyone help me please?
I have the same problem on MAC with wxFrames
The frame shows up only if I click on aplication icon on the tray
Re: wxDialog ShowModal freeze on macOS
Did you create an application bundle? Just building is not enough under OSX.
https://wiki.wxwidgets.org/WxMac-specif ... e_front.21
https://wiki.wxwidgets.org/WxMac-specif ... e_front.21
Use the source, Luke!
Re: wxDialog ShowModal freeze on macOS
yes I diddoublemax wrote: ↑Tue Feb 19, 2019 6:07 pm Did you create an application bundle? Just building is not enough under OSX.
https://wiki.wxwidgets.org/WxMac-specif ... e_front.21
I have a folder myApp.App with executeable inside it
The problem is, I have main wxFrame and child wxFrames of the main frame.
The main frame is shown on startup correctly. But child frames are not shown on creation.
They show up only if I click on systemtray icon
What ever I tried doesn't help
Code: Select all
pFrame->Show();
pFrame->Raise();
pFrame->SetFocus();
mac 10.14.3
- Attachments
-
- 1.jpeg (28.3 KiB) Viewed 2361 times
Re: wxDialog ShowModal freeze on macOS
Hi,
Is you application is MDI-based?
Thank you.
Is you application is MDI-based?
Thank you.
Re: wxDialog ShowModal freeze on macOS
I tried MDI and wxFrames - the same result on both interfaces
Just added this code to wxApp::OnInt()
that didn't help either.
Just added this code to wxApp::OnInt()
Code: Select all
#ifdef __WXOSX__
ProcessSerialNumber PSN;
GetCurrentProcess(&PSN);
TransformProcessType(&PSN,kProcessTransformToForegroundApplication);
#endif
Re: wxDialog ShowModal freeze on macOS
It should be easy to test if this is a general wxWidgets problem. Modify the minimal sample so that it opens a new frame in MyFrame::OnAbout() instead of showing the version info.
Use the source, Luke!
Re: wxDialog ShowModal freeze on macOS
And also, try the docview sample for the MDI.
Thank you.
Thank you.
Re: wxDialog ShowModal freeze on macOS
I tried MDI sample and windows are shown up as expected.
I think problem is that, I use wxAUI inside every wxFrame
I'll try wx 3.1.2 later
I think problem is that, I use wxAUI inside every wxFrame
I'll try wx 3.1.2 later
Re: wxDialog ShowModal freeze on macOS
hello, I moved to wx3.1.3 and the promlem seems is gon