]> git.saurik.com Git - wxWidgets.git/commitdiff
replacing OSX only carbon calls by classic ones for CFM build
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 1 May 2004 06:34:28 +0000 (06:34 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 1 May 2004 06:34:28 +0000 (06:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 88c4356480efc6a168cb6935521744d474f42579..773b9a239135f4f147089b2409a9093331aae03c 100644 (file)
@@ -1652,10 +1652,17 @@ bool wxWindowMac::Enable(bool enable)
         return FALSE;
 
     bool former = MacIsReallyEnabled() ;
+#if TARGET_API_MAC_OSX
     if ( enable )
         EnableControl( (ControlRef) m_macControl ) ;
     else
         DisableControl( (ControlRef) m_macControl ) ;
+#else
+    if ( enable )
+        ActivateControl( (ControlRef) m_macControl ) ;
+    else
+        DeactivateControl( (ControlRef) m_macControl ) ;
+#endif
 
     if ( former != MacIsReallyEnabled() )
         MacPropagateEnabledStateChanged() ;
@@ -1757,7 +1764,11 @@ bool wxWindowMac::MacIsReallyShown()
 
 bool wxWindowMac::MacIsReallyEnabled() 
 {
+#if TARGET_API_MAC_OSX
     return IsControlEnabled( (ControlRef) m_macControl ) ;
+#else
+    return IsControlActive( (ControlRef) m_macControl ) ;
+#endif
 }
 
 bool wxWindowMac::MacIsReallyHilited()