git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72924
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual void SetNeedsDisplay( const wxRect* where = NULL );
virtual bool GetNeedsDisplay() const;
virtual void SetNeedsDisplay( const wxRect* where = NULL );
virtual bool GetNeedsDisplay() const;
+ virtual void SetDrawingEnabled(bool enabled);
+
virtual bool CanFocus() const;
// return true if successful
virtual bool SetFocus();
virtual bool CanFocus() const;
// return true if successful
virtual bool SetFocus();
virtual bool NeedsFrame() const;
virtual void SetNeedsFrame( bool needs );
virtual bool NeedsFrame() const;
virtual void SetNeedsFrame( bool needs );
+
+ virtual void SetDrawingEnabled(bool enabled);
virtual bool CanFocus() const = 0;
// return true if successful
virtual bool CanFocus() const = 0;
// return true if successful
void wxMacControl::SetDrawingEnabled( bool enable )
{
void wxMacControl::SetDrawingEnabled( bool enable )
{
- HIViewSetDrawingEnabled( m_controlRef , enable );
+ if ( enable )
+ {
+ HIViewSetDrawingEnabled( m_controlRef , true );
+ HIViewSetNeedsDisplay( m_controlRef, true);
+ }
+ else
+ {
+ HIViewSetDrawingEnabled( m_controlRef , false );
+ }
}
void wxMacControl::GetRectInWindowCoords( Rect *r )
}
void wxMacControl::GetRectInWindowCoords( Rect *r )
+void wxWidgetCocoaImpl::SetDrawingEnabled(bool enabled)
+{
+ if ( enabled )
+ {
+ [[m_osxView window] enableFlushWindow];
+ [m_osxView setNeedsDisplay:YES];
+ }
+ else
+ {
+ [[m_osxView window] disableFlushWindow];
+ }
+}
if ( !IsShownOnScreen() )
return ;
if ( !IsShownOnScreen() )
return ;
+
+ if ( IsFrozen() )
+ return;
GetPeer()->SetNeedsDisplay( rect ) ;
}
void wxWindowMac::DoFreeze()
{
GetPeer()->SetNeedsDisplay( rect ) ;
}
void wxWindowMac::DoFreeze()
{
if ( GetPeer() && GetPeer()->IsOk() )
GetPeer()->SetDrawingEnabled( false ) ;
if ( GetPeer() && GetPeer()->IsOk() )
GetPeer()->SetDrawingEnabled( false ) ;
}
void wxWindowMac::DoThaw()
{
}
void wxWindowMac::DoThaw()
{
if ( GetPeer() && GetPeer()->IsOk() )
if ( GetPeer() && GetPeer()->IsOk() )
GetPeer()->SetDrawingEnabled( true ) ;
GetPeer()->SetDrawingEnabled( true ) ;
- GetPeer()->InvalidateWithChildren() ;
- }
-#endif
}
wxWindow *wxGetActiveWindow()
}
wxWindow *wxGetActiveWindow()
+
+void wxWidgetImpl::SetDrawingEnabled(bool WXUNUSED(enabled))
+{
+}
\ No newline at end of file