allow to change the event propagation level (modified patch 743086)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-18 00:39:05 +00:00
parent b5a98acdf2
commit 1648d51bcb
4 changed files with 174 additions and 23 deletions

View File

@@ -339,6 +339,7 @@ wxEvent::wxEvent(int theId, wxEventType commandType )
m_skipped = FALSE;
m_callbackUserData = (wxObject *) NULL;
m_isCommandEvent = FALSE;
m_propagationLevel = wxEVENT_PROPAGATE_NONE;
}
wxEvent::wxEvent(const wxEvent &src)
@@ -350,6 +351,7 @@ wxEvent::wxEvent(const wxEvent &src)
, m_callbackUserData(src.m_callbackUserData)
, m_skipped(src.m_skipped)
, m_isCommandEvent(src.m_isCommandEvent)
, m_propagationLevel(src.m_propagationLevel)
{
}
@@ -370,6 +372,9 @@ wxCommandEvent::wxCommandEvent(wxEventType commandType, int theId)
m_extraLong = 0;
m_commandInt = 0;
m_isCommandEvent = TRUE;
// the command events are propagated upwards by default
m_propagationLevel = wxEVENT_PROPAGATE_MAX;
}
/*