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.
Post Reply
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

Post by TextEdit »

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 856 times
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 425
Joined: Fri Dec 09, 2016 7:28 am
Contact:

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

Post by cutecode »

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
wx 3.1.6 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru
Post Reply