- 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 ;
+ WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef();
+
+ Rect bounds = { 0,0,0,0 };
+ OSStatus err = ::CreateNewWindow( wclass , attr , &bounds , (WindowRef*)&m_popupWindowRef ) ;
+ if ( err == noErr )
+ {
+// SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent