}
wxString st = str ;
- st.Replace(wxT("\n"), wxT("\r"));
+ wxMacConvertNewlines13To10( &st ) ;
if ( !m_macUsesTXN )
{
m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , "\p" , false , 0 , 0 , 1,
}
#endif
}
- result.Replace(wxT("\r"),wxT("\n")) ;
+ wxMacConvertNewlines10To13( &result ) ;
return result ;
}
void wxTextCtrl::SetValue(const wxString& str)
{
wxString st = str ;
- st.Replace(wxT("\n"), wxT("\r"));
+ wxMacConvertNewlines13To10( &st ) ;
if ( !m_macUsesTXN )
{
wxCharBuffer text = st.mb_str(wxConvLocal) ;
void wxTextCtrl::Replace(long from, long to, const wxString& str)
{
wxString value = str ;
- value.Replace(wxT("\n"), wxT("\r"));
+ wxMacConvertNewlines13To10( &value ) ;
if ( !m_macUsesTXN )
{
ControlEditTextSelectionRec selection ;
void wxTextCtrl::WriteText(const wxString& str)
{
wxString st = str ;
- st.Replace(wxT("\n"), wxT("\r"));
+ wxMacConvertNewlines13To10( &st ) ;
if ( !m_macUsesTXN )
{
wxCharBuffer text = st.mb_str(wxConvLocal) ;
return FALSE ;
}
-// Makes 'unmodified'
+// Makes modifie or unmodified
+void wxTextCtrl::MarkDirty()
+{
+ m_dirty = true;
+}
+
void wxTextCtrl::DiscardEdits()
{
m_dirty = false;