Fixes needed to get transient popup windows working, also implement SetFont for OS X Cocoa for classes that support it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2009-03-08 04:15:58 +00:00
parent 44ca06dd6e
commit 09a9eb2069
4 changed files with 54 additions and 10 deletions

View File

@@ -291,7 +291,7 @@ void wxPopupTransientWindow::Popup(wxWindow *winFocus)
m_focus->SetFocus();
}
#if defined( __WXMSW__ ) || defined( __WXMAC__)
#if defined( __WXMSW__ ) || (defined( __WXMAC__) && wxOSX_USE_CARBON)
// MSW doesn't allow to set focus to the popup window, but we need to
// subclass the window which has the focus, and not winFocus passed in or
// otherwise everything else breaks down