added debugging code to HitTest(), added m_posLastVisible and m_colLastVisible

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-09-30 21:25:29 +00:00
parent f03ccf7b5b
commit 62b93fefcf
2 changed files with 139 additions and 30 deletions

View File

@@ -266,6 +266,9 @@ protected:
// client coords) which contains the text
void UpdateTextRect();
// calculate the last visible position
void UpdateLastVisible();
// event handlers
void OnChar(wxKeyEvent& event);
void OnSize(wxSizeEvent& event);
@@ -291,12 +294,17 @@ private:
// the rectangle (in client coordinates) to draw text inside
wxRect m_rectText;
// for the controls without horz scrollbar only: the position of the first
// and last visible pixels and the first visible column
wxCoord m_ofsHorz,
m_posLastVisible;
// this section is for the controls without horz scrollbar only
// the position of the first visible pixel and the first visible column
wxCoord m_ofsHorz;
long m_colStart;
// and the last ones (m_posLastVisible is the width but m_colLastVisible
// is an absolute value)
wxCoord m_posLastVisible;
long m_colLastVisible;
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxTextCtrl)
};