1. modified wxMSW::wxCaret to use client coords
2. fixed uninit m_curXXX vars leading to a crash in wxMSW 3. fixed wxWindow::DoDrawBackground() for empty update region git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -71,6 +71,10 @@ void wxTextCtrl::Init()
|
||||
m_isEditable = TRUE;
|
||||
|
||||
m_ofsHorz = 0;
|
||||
|
||||
m_curPos =
|
||||
m_curRow =
|
||||
m_curLine = 0;
|
||||
}
|
||||
|
||||
bool wxTextCtrl::Create(wxWindow *parent,
|
||||
@@ -90,7 +94,9 @@ bool wxTextCtrl::Create(wxWindow *parent,
|
||||
|
||||
// FIXME use renderer
|
||||
wxCaret *caret = new wxCaret(this, 1, GetCharHeight());
|
||||
#ifndef __WXMSW__
|
||||
caret->SetBlinkTime(0);
|
||||
#endif // __WXMSW__
|
||||
SetCaret(caret);
|
||||
|
||||
SetCursor(wxCURSOR_IBEAM);
|
||||
|
Reference in New Issue
Block a user