- return wxPopupWindowBase::Create(parent) &&
- wxWindow::Create(parent, wxID_ANY,
- wxDefaultPosition, wxDefaultSize,
- flags | wxPOPUP_WINDOW);
+ if ( ! wxPopupWindowBase::Create(parent) )
+ return false;
+
+ WindowClass wclass = kHelpWindowClass;
+ WindowAttributes attr = kWindowCompositingAttribute ;
+
+ Rect bounds = { 0,0,0,0 };
+ OSStatus err = ::CreateNewWindow( wclass , attr , &bounds , (WindowRef*)&m_popupWindowRef ) ;
+ if ( err == noErr )
+ {
+#if 0
+ WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef();
+ SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent
+#endif