// common part of all ctors
void Init();
- // focus event handler
- void OnSetFocus(wxFocusEvent& event);
-
// override wxWindow methods to take into account tool/menu/statusbars
virtual void DoSetSize(int x, int y,
int width, int height,
// is the frame currently iconized?
bool m_isIconized;
-
- DECLARE_EVENT_TABLE()
};
#endif // __GTKTOPLEVELH__
// common part of all ctors
void Init();
- // focus event handler
- void OnSetFocus(wxFocusEvent& event);
-
// override wxWindow methods to take into account tool/menu/statusbars
virtual void DoSetSize(int x, int y,
int width, int height,
// is the frame currently iconized?
bool m_isIconized;
-
- DECLARE_EVENT_TABLE()
};
#endif // __GTKTOPLEVELH__
// wxTopLevelWindowGTK itself
// ----------------------------------------------------------------------------
-BEGIN_EVENT_TABLE(wxTopLevelWindowGTK, wxTopLevelWindowBase)
- EVT_SET_FOCUS(wxTopLevelWindowGTK::OnSetFocus)
-END_EVENT_TABLE()
-
//-----------------------------------------------------------------------------
// InsertChild for wxTopLevelWindowGTK
//-----------------------------------------------------------------------------
wxWindow::OnInternalIdle();
}
-void wxTopLevelWindowGTK::OnSetFocus(wxFocusEvent& event)
-{
-#if 0
- if ( !g_delayedFocus || wxGetTopLevelParent(g_delayedFocus) != this )
- {
- // let the base class version set the focus to the first child which
- // accepts it
- event.Skip();
- }
- //else: the focus will be really set from OnInternalIdle() later
-#endif
-}
-
// ----------------------------------------------------------------------------
// frame title/icon
// ----------------------------------------------------------------------------
// wxTopLevelWindowGTK itself
// ----------------------------------------------------------------------------
-BEGIN_EVENT_TABLE(wxTopLevelWindowGTK, wxTopLevelWindowBase)
- EVT_SET_FOCUS(wxTopLevelWindowGTK::OnSetFocus)
-END_EVENT_TABLE()
-
//-----------------------------------------------------------------------------
// InsertChild for wxTopLevelWindowGTK
//-----------------------------------------------------------------------------
wxWindow::OnInternalIdle();
}
-void wxTopLevelWindowGTK::OnSetFocus(wxFocusEvent& event)
-{
-#if 0
- if ( !g_delayedFocus || wxGetTopLevelParent(g_delayedFocus) != this )
- {
- // let the base class version set the focus to the first child which
- // accepts it
- event.Skip();
- }
- //else: the focus will be really set from OnInternalIdle() later
-#endif
-}
-
// ----------------------------------------------------------------------------
// frame title/icon
// ----------------------------------------------------------------------------