]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/window.mm
supporting disabled items, closes #11130
[wxWidgets.git] / src / osx / cocoa / window.mm
index fed5b07659fc780a6786835a482d8013a7756440..7bf085d65b4190e22a534f651f56036045f77262 100644 (file)
@@ -1127,6 +1127,11 @@ wxWidgetCocoaImpl::wxWidgetCocoaImpl( wxWindowMac* peer , WXWidget w, bool isRoo
 {
     Init();
     m_osxView = w;
+
+    // check if the user wants to create the control initially hidden
+    if ( !peer->IsShown() )
+        SetVisibility(false);
+
     // gc aware handling
     if ( m_osxView )
         CFRetain(m_osxView);