Only generate fake focus lost events when using the generic implementation

This commit is contained in:
Thomas Goyne 2013-06-26 12:59:10 -07:00
parent 1adae3160c
commit 38dedfe1d9
1 changed files with 2 additions and 0 deletions

View File

@ -351,8 +351,10 @@ namespace Automation4 {
bool TransferFromWindow()
{
wxSpinCtrlDouble *ctrl = static_cast<wxSpinCtrlDouble*>(GetWindow());
#ifndef wxHAS_NATIVE_SPINCTRLDOUBLE
wxFocusEvent evt;
ctrl->OnTextLostFocus(evt);
#endif
*value = ctrl->GetValue();
return true;
}