1. (hopefully) fixed horz scrolling

2. only refresh part of line in Replace()
3. changed wxWindow::Refresh() to take client coordinates
4. only refresh the text which must be refreshed when selection changes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-10-01 22:47:30 +00:00
parent 62b93fefcf
commit b28342f733
9 changed files with 370 additions and 93 deletions

View File

@@ -233,7 +233,7 @@ MyUnivFrame::MyUnivFrame(const wxString& title)
#ifndef TEST_TEXT_ONLY
wxSize(700, 700)
#else
wxSize(240, 150)
wxSize(240, 200)
#endif
)
{
@@ -383,8 +383,13 @@ MyUnivFrame::MyUnivFrame(const wxString& title)
new wxTextCtrl(this, -1, _T("Hello, Universe!"),
wxPoint(550, 150), wxDefaultSize);
#else // TEST_TEXT_ONLY
new wxTextCtrl(this, -1, _T("Hello, Universe!"),
wxPoint(10, 40), wxSize(200, -1));
wxTextCtrl *text = new wxTextCtrl(this, -1, _T("Hello, Universe!"),
wxPoint(10, 40));
text->SetFont(wxFont(24, wxFONTFAMILY_DEFAULT,
wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL));
wxSize sizeText = text->GetBestSize();
sizeText.x = 200;
text->SetSize(sizeText);
#endif // !TEST_TEXT_ONLY/TEST_TEXT_ONLY
}