fixed displaying text in non default charset in the richedit control

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-12-09 00:47:29 +00:00
parent c6465c961b
commit aac7e7fe7b
3 changed files with 269 additions and 161 deletions

View File

@@ -770,10 +770,17 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
m_horizontal->SetValue("®lu»ouèký kùò zbìsile èe¹tina «»");
break;
default:
case '1':
m_horizontal->SetFont(wxFont(18, wxSWISS, wxNORMAL, wxNORMAL,
FALSE, "",
wxFONTENCODING_KOI8));
wxFONTENCODING_CP1251));
m_horizontal->SetValue("Ïðèâåò!");
break;
case '8':
m_horizontal->SetFont(wxFont(18, wxSWISS, wxNORMAL, wxNORMAL,
FALSE, "",
wxFONTENCODING_CP1251));
m_horizontal->SetValue("ËÁÖÅÔÓÑ ÕÄÁÞÎÙÍ");
}
}
@@ -814,7 +821,6 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
wxTE_AUTO_URL |
wxHSCROLL);
#if 1
m_textrich->SetStyle(0, 10, *wxRED);
m_textrich->SetStyle(10, 20, *wxBLUE);