git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48159
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- void OnChildFocus(wxChildFocusEvent& evt);
+ void OnChildFocusNotebook(wxChildFocusEvent& evt);
void OnRender(wxAuiManagerEvent& evt);
void OnSize(wxSizeEvent& evt);
void OnTabClicked(wxCommandEvent& evt);
void OnRender(wxAuiManagerEvent& evt);
void OnSize(wxSizeEvent& evt);
void OnTabClicked(wxCommandEvent& evt);
void OnTabMiddleUp(wxCommandEvent& evt);
void OnTabRightDown(wxCommandEvent& evt);
void OnTabRightUp(wxCommandEvent& evt);
void OnTabMiddleUp(wxCommandEvent& evt);
void OnTabRightDown(wxCommandEvent& evt);
void OnTabRightUp(wxCommandEvent& evt);
- void OnNavigationKey(wxNavigationKeyEvent& event);
+ void OnNavigationKeyNotebook(wxNavigationKeyEvent& event);
// set selection to the given window (which must be non-NULL and be one of
// our pages, otherwise an assert is raised)
// set selection to the given window (which must be non-NULL and be one of
// our pages, otherwise an assert is raised)
BEGIN_EVENT_TABLE(wxAuiNotebook, wxControl)
EVT_SIZE(wxAuiNotebook::OnSize)
BEGIN_EVENT_TABLE(wxAuiNotebook, wxControl)
EVT_SIZE(wxAuiNotebook::OnSize)
- EVT_CHILD_FOCUS(wxAuiNotebook::OnChildFocus)
+ EVT_CHILD_FOCUS(wxAuiNotebook::OnChildFocusNotebook)
EVT_COMMAND_RANGE(wxAuiBaseTabCtrlId, wxAuiBaseTabCtrlId+500,
wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING,
wxAuiNotebook::OnTabClicked)
EVT_COMMAND_RANGE(wxAuiBaseTabCtrlId, wxAuiBaseTabCtrlId+500,
wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING,
wxAuiNotebook::OnTabClicked)
EVT_COMMAND_RANGE(wxAuiBaseTabCtrlId, wxAuiBaseTabCtrlId+500,
wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP,
wxAuiNotebook::OnTabRightUp)
EVT_COMMAND_RANGE(wxAuiBaseTabCtrlId, wxAuiBaseTabCtrlId+500,
wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP,
wxAuiNotebook::OnTabRightUp)
- EVT_NAVIGATION_KEY(wxAuiNotebook::OnNavigationKey)
+ EVT_NAVIGATION_KEY(wxAuiNotebook::OnNavigationKeyNotebook)
+#ifdef wxHAS_NATIVE_TAB_TRAVERSAL
WX_EVENT_TABLE_CONTROL_CONTAINER(wxAuiNotebook)
WX_EVENT_TABLE_CONTROL_CONTAINER(wxAuiNotebook)
+#else
+ // Avoid clash with container event handler functions
+ EVT_SET_FOCUS(wxAuiNotebook::OnFocus)
+#endif
END_EVENT_TABLE()
WX_DELEGATE_TO_CONTROL_CONTAINER(wxAuiNotebook, wxControl)
END_EVENT_TABLE()
WX_DELEGATE_TO_CONTROL_CONTAINER(wxAuiNotebook, wxControl)
-void wxAuiNotebook::OnChildFocus(wxChildFocusEvent& evt)
+void wxAuiNotebook::OnChildFocusNotebook(wxChildFocusEvent& evt)
{
// if we're dragging a tab, don't change the current selection.
// This code prevents a bug that used to happen when the hint window
{
// if we're dragging a tab, don't change the current selection.
// This code prevents a bug that used to happen when the hint window
-void wxAuiNotebook::OnNavigationKey(wxNavigationKeyEvent& event)
+void wxAuiNotebook::OnNavigationKeyNotebook(wxNavigationKeyEvent& event)
{
if ( event.IsWindowChange() ) {
// change pages
{
if ( event.IsWindowChange() ) {
// change pages