m_dirty = false;
m_privateContextMenu = NULL;
- m_triggerUpdateEvents = true ;
}
wxTextCtrl::~wxTextCtrl()
return true;
}
-wxTextWidgetImpl* wxTextCtrl::GetTextPeer() const
-{
- return dynamic_cast<wxTextWidgetImpl*> (m_peer);
-}
-
void wxTextCtrl::MacSuperChangedPosition()
{
wxWindow::MacSuperChangedPosition() ;
return GetTextPeer()->GetLineText(lineNo) ;
}
-void wxTextCtrl::Remove(long from, long to)
-{
- wxTextEntry::Remove(from, to);
- if ( m_triggerUpdateEvents )
- SendTextUpdatedEvent();
-}
-
-void wxTextCtrl::WriteText(const wxString& str)
-{
- wxTextEntry::WriteText( str ) ;
- if ( m_triggerUpdateEvents )
- SendTextUpdatedEvent();
-}
-
-void wxTextCtrl::Clear()
-{
- wxTextEntry::Clear() ;
- SendTextUpdatedEvent();
-}
-
void wxTextCtrl::Copy()
{
if (CanCopy())