Fix current field highlighting in generic wxTimePickerCtrl under wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Oct 2011 13:15:19 +0000 (13:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Oct 2011 13:15:19 +0000 (13:15 +0000)
commitf58f412be8dc9efb80a68bbda0937107145763d0
tree87e9dcae15c595abd86543193fdc1387955df788
parent4e419dfbbe500682ed07042622856ba733a84b55
Fix current field highlighting in generic wxTimePickerCtrl under wxGTK.

In wxGTK, calling HighlightCurrentField() from EVT_SET_FOCUS handler was not
enough as the highlighting was overwritten by the default behaviour of
selecting the entire text control contents on focus gain.

Fix this by calling SetFocus() from HighlightCurrentField() before updating
the selection. This ensures that the correct field is always highlighted.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/timectrl.cpp