set focus to the control when it's clicked [backport of r53014 from trunk]

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-06-05 15:48:55 +00:00
parent f889378dac
commit ffbf09ac1e
2 changed files with 5 additions and 0 deletions

View File

@@ -134,6 +134,7 @@ All (GUI):
- Fixed timing of malformed animated GIFs in wxHTML (Gennady Feller).
- Fixed incorrect layout width caching in wxHTML (Jeff Tupper).
- wxHTML: preserve TAB characters when copying <pre> content to clipboard.
- Set focus to wxCalendarCtrl when it is clicked.
All (Unix):

View File

@@ -1477,6 +1477,10 @@ void wxCalendarCtrl::OnClick(wxMouseEvent& event)
event.Skip();
break;
}
// as we don't (always) skip the message, we're not going to receive the
// focus on click by default if we don't do it ourselves
SetFocus();
}
wxCalendarHitTestResult wxCalendarCtrl::HitTest(const wxPoint& pos,