macOS: Hide MDI Parent Window in Dock Right-Click Menu

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
TextEdit
In need of some credit
In need of some credit
Posts: 8
Joined: Fri May 11, 2018 7:31 am

macOS: Hide MDI Parent Window in Dock Right-Click Menu

Postby TextEdit » Mon May 28, 2018 1:53 pm

Hi,

I am creating a MDI application for macOS. IMMO, for an MDI application, the parent window does nothing but hold there to prevent application from exit. However, this invisible parent window will show up in the right-click menu of the application on dock.

Please see the attachment. It is from the sample docview. The "unnamed1" is the newly created empty document, and the "wxWIdgets DocView Sample" is the MDI parent window.

Is there a way I can prevent the MDI parent from being displayed in the right-click menu?

Thanks!
Attachments
Screen Shot 2018-05-28 at 10.48.11 PM.png
Screen Shot 2018-05-28 at 10.48.11 PM.png (61.1 KiB) Viewed 176 times

User avatar
cutecode
I live to help wx-kind
I live to help wx-kind
Posts: 188
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: macOS: Hide MDI Parent Window in Dock Right-Click Menu

Postby cutecode » Wed Jun 13, 2018 9:12 pm

not sure, but on mac you can safly close main window if you overide

Code: Select all

#ifndef __WXOSX__
   EVT_CLOSE(MyFrame::OnCloseWindow)
#endif


at least I can
regards,
Alexander Saprykin
www.wxwidgets.ru


Return to “Platform Related Issues”

Who is online

Users browsing this forum: No registered users and 6 guests