Various changes to focus handling when TLW start.
Changed wxWindow::Clear() to use m_clearRegion. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -37,7 +37,8 @@ extern bool g_isIdle;
|
||||
// data
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
extern bool g_blockEventsOnDrag;
|
||||
extern bool g_blockEventsOnDrag;
|
||||
extern wxWindowGTK *g_delayedFocus;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// "clicked"
|
||||
@@ -455,7 +456,6 @@ void wxRadioBox::SetFocus()
|
||||
}
|
||||
node = node->Next();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void wxRadioBox::SetSelection( int n )
|
||||
@@ -711,6 +711,15 @@ void wxRadioBox::OnInternalIdle()
|
||||
|
||||
(void)GetEventHandler()->ProcessEvent( event );
|
||||
}
|
||||
|
||||
if (g_delayedFocus == this)
|
||||
{
|
||||
if (GTK_WIDGET_REALIZED(m_widget))
|
||||
{
|
||||
g_delayedFocus = NULL;
|
||||
SetFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // wxUSE_RADIOBOX
|
||||
|
Reference in New Issue
Block a user