virtual bool IsRetained() const;
virtual void SetFocus();
+ virtual void SetFocusIgnoringChildren();
virtual void SetCanFocus(bool canFocus);
virtual bool Reparent( wxWindowBase *newParent );
return false;
}
+void wxWindowGTK::SetFocusIgnoringChildren()
+{
+ wxCHECK_RET( m_widget != NULL, wxT("invalid window") );
+ if ( m_hasFocus )
+ {
+ // don't do anything if we already have focus
+ return;
+ }
+
+ if (m_wxwindow)
+ {
+ if (!GTK_WIDGET_CAN_FOCUS(m_wxwindow))
+ GTK_WIDGET_SET_FLAGS(m_wxwindow, GTK_CAN_FOCUS);
+ }
+
+ wxWindowGTK::SetFocus();
+}
+
void wxWindowGTK::SetFocus()
{
wxCHECK_RET( m_widget != NULL, wxT("invalid window") );