made MacSetupCursor virtual in order to allow wxTextCtrl to use MLTE native cursor handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2002-09-17 14:27:56 +00:00
parent 77d95b6731
commit bf99a7849d
4 changed files with 17 additions and 4 deletions

View File

@@ -152,7 +152,8 @@ public:
void OnUpdateRedo(wxUpdateUIEvent& event);
virtual bool MacCanFocus() const { return true ; }
virtual bool MacSetupCursor( const wxPoint& pt ) ;
virtual void MacSuperShown( bool show ) ;
virtual bool Show(bool show = TRUE) ;

View File

@@ -242,7 +242,7 @@ public:
virtual void Update() ;
// for compatibility
void MacUpdateImmediately() { Update() ; }
bool MacSetupCursor( const wxPoint& pt ) ;
virtual bool MacSetupCursor( const wxPoint& pt ) ;
// virtual bool MacSetPortDrawingParams( const Point & localOrigin, const Rect & clipRect, WindowRef window , wxWindowMac* rootwin ) ;
// virtual void MacGetPortParams(Point* localOrigin, Rect* clipRect, WindowRef *window , wxWindowMac** rootwin ) ;

View File

@@ -1606,7 +1606,13 @@ void wxTextCtrl::OnUpdateRedo(wxUpdateUIEvent& event)
event.Enable( CanRedo() );
}
bool wxTextCtrl::MacSetupCursor( const wxPoint& pt )
{
if ( m_macUsesTXN )
return true ;
else
return wxWindow::MacSetupCursor( pt ) ;
}
#endif
// wxUSE_TEXTCTRL

View File

@@ -1606,7 +1606,13 @@ void wxTextCtrl::OnUpdateRedo(wxUpdateUIEvent& event)
event.Enable( CanRedo() );
}
bool wxTextCtrl::MacSetupCursor( const wxPoint& pt )
{
if ( m_macUsesTXN )
return true ;
else
return wxWindow::MacSetupCursor( pt ) ;
}
#endif
// wxUSE_TEXTCTRL